diff options
author | Brad King <brad.king@kitware.com> | 2021-04-07 13:36:23 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-07 13:53:22 -0400 |
commit | 3953dfcb315f6d85966703f01c7fbb0ac262e928 (patch) | |
tree | bedb763e0afdccbcc64fa5c6ae186eb83ff80fee /Tests/RunCMake/InitialFlags/CXX.cmake | |
parent | f8af94a2124d61e33f71f67b4ae282475314da25 (diff) | |
download | cmake-3953dfcb315f6d85966703f01c7fbb0ac262e928.tar.gz |
Restore support for backslashes in initial language-wide flags
Refactoring in commit bdc40742bd (CMakeDetermineCompilerId: Test without
COMPILER_ID_FLAGS if REQUIRE_SUCCESS, 2021-02-27, v3.20.0-rc3~6^2) added
an extra macro layer through which flag strings are passed. That caused
an extra level of argument re-parsing, and broke flags with backslashes.
Pass flags to the helper macro through variable names instead.
Fixes: #22041
Diffstat (limited to 'Tests/RunCMake/InitialFlags/CXX.cmake')
-rw-r--r-- | Tests/RunCMake/InitialFlags/CXX.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/InitialFlags/CXX.cmake b/Tests/RunCMake/InitialFlags/CXX.cmake new file mode 100644 index 0000000000..1d7a53cb1a --- /dev/null +++ b/Tests/RunCMake/InitialFlags/CXX.cmake @@ -0,0 +1,3 @@ +set(CMAKE_CXX_FLAGS_INIT [[-Dvar="b\c"]]) +enable_language(CXX) +message(STATUS "CMAKE_CXX_FLAGS='${CMAKE_CXX_FLAGS}'") |