aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-08-28 00:40:11 -0500
committerBrent Cook <busterb@gmail.com>2023-08-29 00:28:53 -0500
commitf4059e4775b2a2ffe7828f7941b6541995691067 (patch)
treec445c234816bb01b3d26a701d3654bc8ca92eb09
parente5f1938cc6479055ca3e59edc8d4dceed08bc000 (diff)
downloadportable-f4059e4775b2a2ffe7828f7941b6541995691067.tar.gz
portable-f4059e4775b2a2ffe7828f7941b6541995691067.tar.bz2
portable-f4059e4775b2a2ffe7828f7941b6541995691067.zip
enable asserts regardless of build type
-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")