diff options
author | Brad King <brad.king@kitware.com> | 2023-02-06 14:24:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-02-06 14:25:37 (GMT) |
commit | bfe24f17646f8bb7154035e1be683ad94cac3542 (patch) | |
tree | ce11e29b3b8f1ad8112864e9d6ec56675d99111b /Modules | |
parent | 6a9c4137296d0c508141f73819651fba4d70f044 (diff) | |
parent | 7201bc072c9fed3373522ab8457ec8bdc0627f2a (diff) | |
download | CMake-bfe24f17646f8bb7154035e1be683ad94cac3542.zip CMake-bfe24f17646f8bb7154035e1be683ad94cac3542.tar.gz CMake-bfe24f17646f8bb7154035e1be683ad94cac3542.tar.bz2 |
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.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 41e0e1a..1f89c74 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}) |