enable asserts regardless of build type
This commit is contained in:
parent
e5f1938cc6
commit
f4059e4775
@ -62,6 +62,13 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|||||||
STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Enable asserts regardless of build type
|
||||||
|
if(MSVC)
|
||||||
|
add_definitions(/UNDEBUG)
|
||||||
|
else()
|
||||||
|
add_definitions(-UNDEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(BUILD_NC true)
|
set(BUILD_NC true)
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user