diff options
author | Brad King <brad.king@kitware.com> | 2021-03-03 14:03:24 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-03 14:03:34 (GMT) |
commit | d6670c5d1c3d646b1933c16a7ade24fdcdf707b9 (patch) | |
tree | 633c07b4f3fa70a1cf7ac27323c2b68e8c1c9691 | |
parent | b212fba208df4f7184efa63b6c037d998ab18cd5 (diff) | |
parent | 1bd8f1945359318b97f61127bac000b887c41151 (diff) | |
download | CMake-d6670c5d1c3d646b1933c16a7ade24fdcdf707b9.zip CMake-d6670c5d1c3d646b1933c16a7ade24fdcdf707b9.tar.gz CMake-d6670c5d1c3d646b1933c16a7ade24fdcdf707b9.tar.bz2 |
Merge topic 'compilerid_require_success' into release-3.20
1bd8f19453 CMakeDetermineCompilerId: Fix REQUIRE_SUCCESS with multiple user flags
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5874
-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 e688bcd..1595cfd 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -43,7 +43,7 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src) set(__compiler_id_require_success TRUE) endif() - foreach(userflags ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST} "") + foreach(userflags "${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}" "") __determine_compiler_id_test("${CMAKE_${lang}_COMPILER_ID_TEST_FLAGS_FIRST}" "${userflags}") if(CMAKE_${lang}_COMPILER_ID) break() |