Skip to content

Commit

Permalink
Fix for COCOS2D_DEBUG is always 1 on Android (cocos2d#19291)
Browse files Browse the repository at this point in the history
  • Loading branch information
formatCvt authored and huangwei1024 committed Jun 20, 2019
1 parent 8e138d1 commit 71de072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/CocosConfigDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ endif()

# Set macro definitions for special platforms
function(use_cocos2dx_compile_define target)
target_compile_definitions(${target} PUBLIC "COCOS2D_DEBUG$<$<CONFIG:Debug>:=1>")
target_compile_definitions(${target} PUBLIC $<$<CONFIG:Debug>:COCOS2D_DEBUG=1>)
if(APPLE)
target_compile_definitions(${target} PUBLIC __APPLE__)
target_compile_definitions(${target} PUBLIC USE_FILE32API)
Expand Down

0 comments on commit 71de072

Please sign in to comment.