From 158dc8277af7dad98c1cc340002f222e0785e868 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 829aedf64f476..45b6a7135dbaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -486,6 +486,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)