diff options
author | Brad King <brad.king@kitware.com> | 2020-12-15 12:43:22 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-12-15 12:43:36 (GMT) |
commit | 807c903c5585c5933074c6c10eb3a5513e83b8a5 (patch) | |
tree | 3d14c4e2a74346cfb2d669831ed58a5a3c0a275d /Tests/RunCMake/File_Configure/EscapeQuotes.cmake | |
parent | 38acdc5d3a03f9621c729763312ad63c210d84c0 (diff) | |
parent | 6d0712c225013161abe1c491db13726cbd90f9ec (diff) | |
download | CMake-807c903c5585c5933074c6c10eb3a5513e83b8a5.zip CMake-807c903c5585c5933074c6c10eb3a5513e83b8a5.tar.gz CMake-807c903c5585c5933074c6c10eb3a5513e83b8a5.tar.bz2 |
Merge topic 'issue-20915'
6d0712c225 file(configure): Order of named options should be specified in any order
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5608
Diffstat (limited to 'Tests/RunCMake/File_Configure/EscapeQuotes.cmake')
-rw-r--r-- | Tests/RunCMake/File_Configure/EscapeQuotes.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/File_Configure/EscapeQuotes.cmake b/Tests/RunCMake/File_Configure/EscapeQuotes.cmake new file mode 100644 index 0000000..1136c87 --- /dev/null +++ b/Tests/RunCMake/File_Configure/EscapeQuotes.cmake @@ -0,0 +1,12 @@ +set(file_name ${CMAKE_CURRENT_BINARY_DIR}/escape_quotes.txt) +set(var "\t") +set(ref "${var}") +file(CONFIGURE + CONTENT "-->@ref@<--" + OUTPUT ${file_name} + ESCAPE_QUOTES +) +file(READ ${file_name} file_content) +if(NOT file_content MATCHES "^-->\t<--$") + message(FATAL_ERROR "ESCAPE_QUOTES doesn't work") +endif() |