diff options
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b34765..ca593f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -62,6 +62,13 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |||
62 | STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") | 62 | STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") |
63 | endif() | 63 | endif() |
64 | 64 | ||
65 | # Enable asserts regardless of build type | ||
66 | if(MSVC) | ||
67 | add_definitions(/UNDEBUG) | ||
68 | else() | ||
69 | add_definitions(-UNDEBUG) | ||
70 | endif() | ||
71 | |||
65 | set(BUILD_NC true) | 72 | set(BUILD_NC true) |
66 | 73 | ||
67 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") | 74 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") |