aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt7
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")
63endif() 63endif()
64 64
65# Enable asserts regardless of build type
66if(MSVC)
67 add_definitions(/UNDEBUG)
68else()
69 add_definitions(-UNDEBUG)
70endif()
71
65set(BUILD_NC true) 72set(BUILD_NC true)
66 73
67if(CMAKE_SYSTEM_NAME MATCHES "Darwin") 74if(CMAKE_SYSTEM_NAME MATCHES "Darwin")