mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -05:00
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.
This commit is contained in:
@@ -92,7 +92,7 @@ endfunction()
|
||||
|
||||
STRANGE_FUNCTION(var)
|
||||
set(second_var "second_var")
|
||||
if("${var}" STREQUAL "strange_function" AND "${second_var}" STREQUAL "second_var")
|
||||
if("x${var}" STREQUAL "xstrange_function" AND "x${second_var}" STREQUAL "xsecond_var")
|
||||
PASS("Case Test" "(${var} ${second_var})")
|
||||
else()
|
||||
FAILED("Case test" "(${var} ${second_var})")
|
||||
|
||||
Reference in New Issue
Block a user