Skip to content

Commit 1afb808

Browse files
committed
A fix?
1 parent 4779402 commit 1afb808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/FlagsSummary.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function(print_flags_per_config config indent_num)
3030
indent_message("C compiler flags ......................" "${c_compiler_flags}" ${indent_num})
3131

3232
if(BUILD_SHARED_LIBS)
33-
string(STRIP "${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_${config_uppercase}}" linker_flags)
33+
string(STRIP "${CMAKE_SHARED_LIBRARY_C_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}" linker_flags)
34+
string(STRIP "${linker_flags} ${CMAKE_SHARED_LINKER_FLAGS_${config_uppercase}}" linker_flags)
3435
if(NOT MSVC)
3536
string(STRIP "${c_language_flags} ${linker_flags}" linker_flags)
3637
endif()

0 commit comments

Comments
 (0)