diff options
author | Brad King <brad.king@kitware.com> | 2014-09-09 13:09:57 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-09-11 19:23:24 (GMT) |
commit | 858d5a0b3e52dbae635fac5a6944fba23a362f5b (patch) | |
tree | 76f2be038609faeb88abfb1d02826aec6250d659 /Tests | |
parent | e177e7affb10fc25b71d4c9d9796c9df7fcdb800 (diff) | |
download | CMake-858d5a0b3e52dbae635fac5a6944fba23a362f5b.zip CMake-858d5a0b3e52dbae635fac5a6944fba23a362f5b.tar.gz CMake-858d5a0b3e52dbae635fac5a6944fba23a362f5b.tar.bz2 |
Fix if() checks of CMAKE_SYSTEM_NAME on Cygwin
The CMAKE_SYSTEM_NAME is "CYGWIN", but we also define a variable
named "CYGWIN" to "1". Avoid allowing if() to expand the "CYGWIN"
string as a variable.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 7242a00..128498c 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1392,7 +1392,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release ) list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Dependency") - if("${CMAKE_SYSTEM_NAME}" MATCHES syllable) + if(CMAKE_SYSTEM_NAME MATCHES syllable) # RPATH isn't supported under Syllable, so the tests don't # find their libraries. In order to fix that LIBRARY_OUTPUT_DIR |