diff options
author | Brad King <brad.king@kitware.com> | 2014-09-16 09:05:22 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-16 09:06:29 -0400 |
commit | fa7d47ac5ce8a2c1006fa73f518a33bab9d83174 (patch) | |
tree | 7f80f0157507fb8bbf328721f0f1de5fed8116b4 /Tests/MacroTest | |
parent | 3b5ea54a27bc69cf64c87dd5dc2bdc227dc4e776 (diff) | |
download | cmake-fa7d47ac5ce8a2c1006fa73f518a33bab9d83174.tar.gz |
Tests: Fix CMP0054 warnings
Hack the CMP0054 warning locally to be an error and run the test suite.
Resolve CMP0054 in Tests/* code as appropriate for each case.
Diffstat (limited to 'Tests/MacroTest')
-rw-r--r-- | Tests/MacroTest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/MacroTest/CMakeLists.txt b/Tests/MacroTest/CMakeLists.txt index 02bb31f208..6c6dfb6251 100644 --- a/Tests/MacroTest/CMakeLists.txt +++ b/Tests/MacroTest/CMakeLists.txt @@ -36,7 +36,7 @@ macro(strange_macro m) endmacro() STRANGE_MACRO(var) set(second_var "second_var") -if("${var}" STREQUAL "strange_macro" AND "${second_var}" STREQUAL "second_var") +if("x${var}" STREQUAL "xstrange_macro" AND "x${second_var}" STREQUAL "xsecond_var") PASS("Case Test" "(${var} ${second_var})") else() FAILED("Case test" "(${var} ${second_var})") |