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}")