enable opt assertions in relwithdebinfo build

This commit is contained in:
Maximilian Keßler 2023-11-11 13:48:55 +01:00
parent 571011d7b5
commit f3fe367988
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -23,3 +23,5 @@ target_link_libraries(endgame-analyzer Boost::program_options)
target_link_libraries(endgame-analyzer readline) target_link_libraries(endgame-analyzer readline)
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG") #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}")