From 787568b03a23287260d8af7da6908f16574925f7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 10 Oct 2024 23:12:35 -0700 Subject: [PATCH] Don't modify the RelWithDebInfo flags --- CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 549e0a57..c5cb8d29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,14 +285,6 @@ else() set(C_FLAGS ${C_FLAGS} -Werror) endif() - # We want RelWithDebInfo to actually include debug stuff (define _DEBUG - # instead of NDEBUG) - foreach(flag_var CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO) - if(${flag_var} MATCHES "-DNDEBUG") - string(REGEX REPLACE "-DNDEBUG" "-D_DEBUG" ${flag_var} "${${flag_var}}") - endif() - endforeach() - check_c_compiler_flag(-fno-math-errno HAVE_FNO_MATH_ERRNO) if(HAVE_FNO_MATH_ERRNO) set(C_FLAGS ${C_FLAGS} -fno-math-errno) -- 2.11.4.GIT