diff options
author | Brent Cook <busterb@gmail.com> | 2023-08-28 00:40:11 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-08-29 00:28:53 -0500 |
commit | f4059e4775b2a2ffe7828f7941b6541995691067 (patch) | |
tree | c445c234816bb01b3d26a701d3654bc8ca92eb09 | |
parent | e5f1938cc6479055ca3e59edc8d4dceed08bc000 (diff) | |
download | portable-f4059e4775b2a2ffe7828f7941b6541995691067.tar.gz portable-f4059e4775b2a2ffe7828f7941b6541995691067.tar.bz2 portable-f4059e4775b2a2ffe7828f7941b6541995691067.zip |
enable asserts regardless of build type
-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") |