diff options
| -rw-r--r-- | cmake/compiler/clang/settings.cmake | 10 | ||||
| -rw-r--r-- | cmake/compiler/gcc/settings.cmake | 10 |
2 files changed, 14 insertions, 6 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index 49befa6f469..d31f76a71fa 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -57,9 +57,13 @@ if(WITH_WARNINGS) message(STATUS "Clang: All warnings enabled") endif() -target_compile_options(trinity-compile-option-interface - INTERFACE - $<$<OR:$<CONFIG:Debug,RelWithDebInfo>,$<BOOL:${WITH_COREDEBUG}>>:-g3 -glldb>) +if(WITH_COREDEBUG) + target_compile_options(trinity-compile-option-interface + INTERFACE + -g3 -glldb) + + message(STATUS "Clang: Debug-flags set (-g3 -glldb)") +endif() if(ASAN) target_compile_options(trinity-compile-option-interface 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 |
