diff options
author | Brad King <brad.king@kitware.com> | 2004-09-20 12:51:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-09-20 12:51:12 (GMT) |
commit | bc26a216b49a7ba9367ed5fd7d411a78bbf63394 (patch) | |
tree | 83afca4214ead61440d04c2004f3e252ff66c3db /Tests/StringFileTest/CMakeLists.txt | |
parent | bedb6e899f28b6dc2f16c093342e9a34dd9bc46b (diff) | |
download | CMake-bc26a216b49a7ba9367ed5fd7d411a78bbf63394.zip CMake-bc26a216b49a7ba9367ed5fd7d411a78bbf63394.tar.gz CMake-bc26a216b49a7ba9367ed5fd7d411a78bbf63394.tar.bz2 |
BUG#1179: Fix for syntax in unquoted arguments.
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r-- | Tests/StringFileTest/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index c0a904d..298f694 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -27,6 +27,14 @@ MESSAGE("Output: [${var}]") SET(var \\ \" \ \t \n \r \# \( \) \0) MESSAGE("Output: [${var}]") +# Make-style unquoted argument test +SET(var $(VAR1)$(VAR2)/$(VAR3)) +MESSAGE("Output: [${var}]") +STRING(COMPARE EQUAL "${var}" "$(VAR1)$(VAR2)/$(VAR3)" result) +IF(NOT result) + MESSAGE(SEND_ERROR "Unquoted $(VAR) syntax is broken.") +ENDIF(NOT result) + # Make directories test FILE(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Includes" |