From 798e9a219d1a07e70ae268077135c4aa11af534c Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:30:28 +0100 Subject: [PATCH] A fix? A true fix --- cmake/FlagsSummary.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/FlagsSummary.cmake b/cmake/FlagsSummary.cmake index a9719f9280..8d97a53abd 100644 --- a/cmake/FlagsSummary.cmake +++ b/cmake/FlagsSummary.cmake @@ -31,6 +31,9 @@ function(print_flags_per_config config indent_num) if(BUILD_SHARED_LIBS) string(STRIP "${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_${config_uppercase}}" linker_flags) + if(NOT APPLE AND NOT MSVC) + string(STRIP "${CMAKE_SHARED_LIBRARY_C_FLAGS} ${linker_flags}" linker_flags) + endif() if(NOT MSVC) string(STRIP "${c_language_flags} ${linker_flags}" linker_flags) endif()