From f4059e4775b2a2ffe7828f7941b6541995691067 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 28 Aug 2023 00:40:11 -0500 Subject: enable asserts regardless of build type --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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) STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") endif() +# Enable asserts regardless of build type +if(MSVC) + add_definitions(/UNDEBUG) +else() + add_definitions(-UNDEBUG) +endif() + set(BUILD_NC true) if(CMAKE_SYSTEM_NAME MATCHES "Darwin") -- cgit v1.2.3-55-g6feb