From a184fa067832693d24cc49708f2685a490ff3057 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 18 May 2024 16:13:23 +0100 Subject: [PATCH] [FIXUP] cmake: Deduplicate configuration specific flags --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index de65f18c408e9..d8979ac026fc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -485,6 +485,11 @@ else() endif() unset(compiler_supports_g3) unset(c_flags_debug_overridden) + + deduplicate_flags(CMAKE_C_FLAGS_RELWITHDEBINFO) + deduplicate_flags(CMAKE_CXX_FLAGS_RELWITHDEBINFO) + deduplicate_flags(CMAKE_C_FLAGS_DEBUG) + deduplicate_flags(CMAKE_CXX_FLAGS_DEBUG) endif() include(cmake/optional.cmake)