From f4dd15455db54d688bf5f293b0963cf35c118dd7 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 30 Jun 2024 21:39:45 +0100 Subject: [PATCH] cmake: Fix quoting for string arguments --- cmake/module/FlagsSummary.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/module/FlagsSummary.cmake b/cmake/module/FlagsSummary.cmake index 563146716cb8e..9a408f715d918 100644 --- a/cmake/module/FlagsSummary.cmake +++ b/cmake/module/FlagsSummary.cmake @@ -19,7 +19,7 @@ function(print_flags_per_config config indent_num) string(TOUPPER "${config}" config_uppercase) include(GetTargetInterface) - get_target_interface(definitions ${config} core_interface COMPILE_DEFINITIONS) + 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) @@ -27,7 +27,7 @@ function(print_flags_per_config config indent_num) if(CMAKE_POSITION_INDEPENDENT_CODE) string(JOIN " " combined_cxx_flags ${combined_cxx_flags} ${CMAKE_CXX_COMPILE_OPTIONS_PIC}) endif() - get_target_interface(core_cxx_flags ${config} core_interface COMPILE_OPTIONS) + get_target_interface(core_cxx_flags "${config}" core_interface COMPILE_OPTIONS) string(STRIP "${combined_cxx_flags} ${core_cxx_flags}" combined_cxx_flags) string(STRIP "${combined_cxx_flags} ${APPEND_CPPFLAGS}" combined_cxx_flags) string(STRIP "${combined_cxx_flags} ${APPEND_CXXFLAGS}" combined_cxx_flags) @@ -35,7 +35,7 @@ function(print_flags_per_config config indent_num) string(STRIP "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${config_uppercase}}" combined_linker_flags) string(STRIP "${combined_linker_flags} ${CMAKE_EXE_LINKER_FLAGS}" combined_linker_flags) - get_target_interface(common_link_options ${config} core_interface LINK_OPTIONS) + get_target_interface(common_link_options "${config}" core_interface LINK_OPTIONS) string(STRIP "${combined_linker_flags} ${common_link_options}" combined_linker_flags) if(CMAKE_CXX_LINK_PIE_SUPPORTED) string(JOIN " " combined_linker_flags ${combined_linker_flags} ${CMAKE_CXX_LINK_OPTIONS_PIE}) @@ -58,11 +58,11 @@ function(flags_summary) foreach(config IN LISTS CMAKE_CONFIGURATION_TYPES) message("") message("'${config}' build configuration:") - print_flags_per_config(${config} 2) + print_flags_per_config("${config}" 2) endforeach() else() message("CMAKE_BUILD_TYPE ...................... ${CMAKE_BUILD_TYPE}") - print_flags_per_config(${CMAKE_BUILD_TYPE} 0) + print_flags_per_config("${CMAKE_BUILD_TYPE}" 0) endif() message("") message([=[