summaryrefslogtreecommitdiff
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-04-13 09:21:31 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-01 13:08:13 -0400
commit48b5b855934be341c02139c0bed88c35c1b40d8f (patch)
tree932548a1470f02f2949e3c26ff3e95f5c12f2284 /Source/cmMakefile.h
parentcd626ea66ed114736ddf5d6a4c989ef6c9b8d248 (diff)
downloadcmake-48b5b855934be341c02139c0bed88c35c1b40d8f.tar.gz
Add a warning when variables are used uninitialized.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 4fae7eee2a..daeab8392c 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -61,6 +61,10 @@ public:
unsigned int GetCacheMajorVersion();
unsigned int GetCacheMinorVersion();
+ /* return true if a variable has been set with
+ set(foo )
+ */
+ bool VariableCleared(const char* ) const;
/** Return whether compatibility features needed for a version of
the cache or lower should be enabled. */
bool NeedCacheCompatibility(int major, int minor);