summaryrefslogtreecommitdiff
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-10 16:59:45 -0400
committerBrad King <brad.king@kitware.com>2009-09-10 16:59:45 -0400
commitee2b446c953f278eefff44f964f6e39cdc0fff78 (patch)
tree0f4213c3893cd8f6e30c6c878230b4c8680e33c5 /Source/cmMakefile.h
parentafbe0883094afddb7cbaedcb8d89031ef503ed3b (diff)
downloadcmake-ee2b446c953f278eefff44f964f6e39cdc0fff78.tar.gz
Create CMake Policy CMP0015 to fix set(CACHE)
The set(CACHE) and option() commands should always expose the cache value. Previously we failed to expose the value when it was already set if a local variable definition hid it. When set to NEW, this policy tells the commands to always remove the local variable definition to expose the cache value. See issue #9008.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 6c3d218dd5..a3a16b6c5b 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -291,6 +291,11 @@ public:
bool force = false);
/**
+ * Update the variable scope to make the cache definition visible.
+ */
+ void UseCacheDefinition(cmCacheManager::CacheIterator const& it);
+
+ /**
* Add bool variable definition to the build.
*/
void AddDefinition(const char* name, bool);