From 33ef103e52fbf3429f28c8f989321bcbb49dc34c Mon Sep 17 00:00:00 2001 From: Steven Hahn <hahnse@ornl.gov> Date: Wed, 14 Mar 2018 17:54:07 -0400 Subject: [PATCH] Add -fno-omit-frame-pointer to RelWithDebInfo config. --- buildconfig/CMake/GNUSetup.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildconfig/CMake/GNUSetup.cmake b/buildconfig/CMake/GNUSetup.cmake index 22b202ff95b..05525e7c841 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) -- GitLab