summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-05-20 21:00:28 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-05-22 15:13:29 (GMT)
commit9ba91463e61b1e4ff5b3dcdea82981f65097e7dd (patch)
tree74d19a1efce36da1eb217d3782d7753c4e2fd42b /Source/cmMakefile.h
parent3ea9bde8450a28b58730230e9e73e4b8d439f701 (diff)
downloadCMake-9ba91463e61b1e4ff5b3dcdea82981f65097e7dd.zip
CMake-9ba91463e61b1e4ff5b3dcdea82981f65097e7dd.tar.gz
CMake-9ba91463e61b1e4ff5b3dcdea82981f65097e7dd.tar.bz2
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.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 11904a6..9a4b9c7 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -1127,6 +1127,8 @@ private:
const std::string& feature) const;
bool HaveCxxFeatureAvailable(cmTarget const* target,
const std::string& feature) const;
+
+ mutable bool SuppressWatches;
};
//----------------------------------------------------------------------------