From f3fe3679889b9c1faf1a3598fdac706bbc3f1f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 11 Nov 2023 13:48:55 +0100 Subject: [PATCH] enable opt assertions in relwithdebinfo build --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b19b41c..951be7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,3 +23,5 @@ target_link_libraries(endgame-analyzer Boost::program_options) target_link_libraries(endgame-analyzer readline) #set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG") +# This enables assertions in the RelWithDebInfo build type (assuming gcc or clang) +string(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")