diff --git a/buildconfig/CMake/GNUSetup.cmake b/buildconfig/CMake/GNUSetup.cmake index 22b202ff95bd968e8f420279911d6dada129bcac..05525e7c84173dbb11d0d9173b2f1447064da861 100644 --- a/buildconfig/CMake/GNUSetup.cmake +++ b/buildconfig/CMake/GNUSetup.cmake @@ -63,7 +63,7 @@ elseif ( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" ) endif() # Add some options for debug build to help the Zoom profiler -add_compile_options ( $<$<CONFIG:Debug>:-fno-omit-frame-pointer> ) +add_compile_options ( $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:-fno-omit-frame-pointer> ) option(WITH_ASAN "Enable address sanitizer" OFF) if(WITH_ASAN)