tests: test CMP0053 in WARN mode when watching variables
authorBen Boeckel <ben.boeckel@kitware.com>
Tue, 20 May 2014 21:00:28 +0000 (17:00 -0400)
committerBen Boeckel <ben.boeckel@kitware.com>
Thu, 22 May 2014 15:13:29 +0000 (11:13 -0400)
commit9ba91463e61b1e4ff5b3dcdea82981f65097e7dd
tree74d19a1efce36da1eb217d3782d7753c4e2fd42b
parent3ea9bde8450a28b58730230e9e73e4b8d439f701
tests: test CMP0053 in WARN mode when watching variables

When CMP0053 is in WARN mode, variables get expanded twice, leaking the
fact that the string was expanded twice and changing behavior. Instead,
suppress variable watches when running the expansion to trigger the
CMP0053 warning.
Source/cmMakefile.cxx
Source/cmMakefile.h
Tests/RunCMake/CMP0053/CMP0053-NEW-stderr.txt [new file with mode: 0644]
Tests/RunCMake/CMP0053/CMP0053-NEW.cmake [new file with mode: 0644]
Tests/RunCMake/CMP0053/CMP0053-OLD-stderr.txt [new file with mode: 0644]
Tests/RunCMake/CMP0053/CMP0053-OLD.cmake [new file with mode: 0644]
Tests/RunCMake/CMP0053/CMP0053-WARN-stderr.txt [new file with mode: 0644]
Tests/RunCMake/CMP0053/CMP0053-WARN.cmake [new file with mode: 0644]
Tests/RunCMake/CMP0053/CMakeLists.txt [new file with mode: 0644]
Tests/RunCMake/CMP0053/RunCMakeTest.cmake [new file with mode: 0644]
Tests/RunCMake/CMakeLists.txt