Skip to content

Commit 73b6185

Browse files
committed
build: Print CMAKE_CXX_COMPILER_ARG1 in summary
When `-DCMAKE_CXX_COMPILER='clang++;-stdlib=libc++;-m32'` is provided, `-stdlib=libc++ -m32` flags are printed in the summary now.
1 parent f03c942 commit 73b6185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/module/FlagsSummary.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ function(print_flags_per_config config indent_num)
2222
get_target_interface(definitions "${config}" core_interface COMPILE_DEFINITIONS)
2323
indent_message("Preprocessor defined macros ..........." "${definitions}" ${indent_num})
2424

25-
string(STRIP "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${config_uppercase}}" combined_cxx_flags)
25+
string(STRIP "${CMAKE_CXX_COMPILER_ARG1} ${CMAKE_CXX_FLAGS}" combined_cxx_flags)
26+
string(STRIP "${combined_cxx_flags} ${CMAKE_CXX_FLAGS_${config_uppercase}}" combined_cxx_flags)
2627
string(STRIP "${combined_cxx_flags} ${CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION}" combined_cxx_flags)
2728
if(CMAKE_POSITION_INDEPENDENT_CODE)
2829
string(JOIN " " combined_cxx_flags ${combined_cxx_flags} ${CMAKE_CXX_COMPILE_OPTIONS_PIC})

0 commit comments

Comments
 (0)