aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/compiler/gcc')
-rw-r--r--cmake/compiler/gcc/settings.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index 463cf1e47b4..8788ab3a4c4 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -41,9 +41,13 @@ if(WITH_WARNINGS)
message(STATUS "GCC: All warnings enabled")
endif()
-target_compile_options(trinity-compile-option-interface
- INTERFACE
- $<$<OR:$<CONFIG:Debug,RelWithDebInfo>,$<BOOL:${WITH_COREDEBUG}>>:-ggdb3>)
+if(WITH_COREDEBUG)
+ target_compile_options(trinity-compile-option-interface
+ INTERFACE
+ -ggdb3)
+
+ message(STATUS "GCC: Debug-flags set (-ggdb3)")
+endif()
if(ASAN)
target_compile_options(trinity-compile-option-interface