summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-06 14:24:58 +0000
committerKitware Robot <kwrobot@kitware.com>2023-02-06 09:25:37 -0500
commitbfe24f17646f8bb7154035e1be683ad94cac3542 (patch)
treece11e29b3b8f1ad8112864e9d6ec56675d99111b /Modules
parent6a9c4137296d0c508141f73819651fba4d70f044 (diff)
parent7201bc072c9fed3373522ab8457ec8bdc0627f2a (diff)
downloadcmake-bfe24f17646f8bb7154035e1be683ad94cac3542.tar.gz
Merge topic 'compiler-id-flags-with-quotes'
7201bc072c CompilerId: Fix handling of CMAKE_<LANG>_FLAGS with quotes Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8158
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 41e0e1a49e..1f89c74d20 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -35,7 +35,7 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
else(CMAKE_${lang}_FLAGS_INIT)
set(CMAKE_${lang}_COMPILER_ID_FLAGS ${CMAKE_${lang}_FLAGS_INIT})
endif()
- string(REPLACE " " ";" CMAKE_${lang}_COMPILER_ID_FLAGS_LIST "${CMAKE_${lang}_COMPILER_ID_FLAGS}")
+ separate_arguments(CMAKE_${lang}_COMPILER_ID_FLAGS_LIST NATIVE_COMMAND "${CMAKE_${lang}_COMPILER_ID_FLAGS}")
# Compute the directory in which to run the test.
set(CMAKE_${lang}_COMPILER_ID_DIR ${CMAKE_PLATFORM_INFO_DIR}/CompilerId${lang})