aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-09-03 18:18:48 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-09-06 21:59:52 +0100
commit73b618582dcf06dd01be062fe0f81060cfcb48d8 (patch)
treed48e031369b4fdc84ab732de4604328a605ec6f6 /cmake
parentf03c9420958de31fdfecec5fa3e23134aac61803 (diff)
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.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/module/FlagsSummary.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/module/FlagsSummary.cmake b/cmake/module/FlagsSummary.cmake
index 9a408f715d..91d1df90d9 100644
--- a/cmake/module/FlagsSummary.cmake
+++ b/cmake/module/FlagsSummary.cmake
@@ -22,7 +22,8 @@ function(print_flags_per_config config indent_num)
get_target_interface(definitions "${config}" core_interface COMPILE_DEFINITIONS)
indent_message("Preprocessor defined macros ..........." "${definitions}" ${indent_num})
- string(STRIP "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${config_uppercase}}" combined_cxx_flags)
+ string(STRIP "${CMAKE_CXX_COMPILER_ARG1} ${CMAKE_CXX_FLAGS}" combined_cxx_flags)
+ string(STRIP "${combined_cxx_flags} ${CMAKE_CXX_FLAGS_${config_uppercase}}" combined_cxx_flags)
string(STRIP "${combined_cxx_flags} ${CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION}" combined_cxx_flags)
if(CMAKE_POSITION_INDEPENDENT_CODE)
string(JOIN " " combined_cxx_flags ${combined_cxx_flags} ${CMAKE_CXX_COMPILE_OPTIONS_PIC})