Fix debug compile definition not working
This commit is contained in:
parent
ce7de29721
commit
d0e1c3749f
2 changed files with 2 additions and 4 deletions
|
@ -14,6 +14,8 @@ else()
|
|||
message(STATUS "Building with unspecified build type")
|
||||
endif()
|
||||
|
||||
add_compile_definitions($<$<CONFIG:Debug>:DEBUG_MODE>)
|
||||
|
||||
#set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||
|
||||
# Platform-specific definitions
|
||||
|
|
|
@ -118,10 +118,6 @@ target_include_directories(HarmonyLinkLib
|
|||
|
||||
target_compile_definitions(HarmonyLinkLib PRIVATE HARMONYLINKLIB_EXPORTS)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
target_compile_definitions(HarmonyLinkLib PRIVATE "DEBUG_MODE")
|
||||
endif()
|
||||
|
||||
# Set output directories for all build types
|
||||
foreach(TYPE IN ITEMS DEBUG RELEASE)
|
||||
string(TOUPPER ${TYPE} TYPE_UPPER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue