diff options
author | Brad King <brad.king@kitware.com> | 2009-09-10 20:59:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-10 20:59:45 (GMT) |
commit | ee2b446c953f278eefff44f964f6e39cdc0fff78 (patch) | |
tree | 0f4213c3893cd8f6e30c6c878230b4c8680e33c5 /Source/cmSetCommand.h | |
parent | afbe0883094afddb7cbaedcb8d89031ef503ed3b (diff) | |
download | CMake-ee2b446c953f278eefff44f964f6e39cdc0fff78.zip CMake-ee2b446c953f278eefff44f964f6e39cdc0fff78.tar.gz CMake-ee2b446c953f278eefff44f964f6e39cdc0fff78.tar.bz2 |
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/cmSetCommand.h')
-rw-r--r-- | Source/cmSetCommand.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSetCommand.h b/Source/cmSetCommand.h index c2b65c4..1d2441a 100644 --- a/Source/cmSetCommand.h +++ b/Source/cmSetCommand.h @@ -69,8 +69,10 @@ public: " set(<variable> <value>\n" " [[CACHE <type> <docstring> [FORCE]] | PARENT_SCOPE])\n" "Within CMake sets <variable> to the value <value>. <value> is expanded" - " before <variable> is set to it. If CACHE is present, then the " - "<variable> is put in the cache. <type> and <docstring> are then " + " before <variable> is set to it. If CACHE is present and <variable> " + "is not yet in the cache, then <variable> is put in the cache. If it is " + "already in the cache, <variable> is assigned the value stored in the " + "cache. If CACHE is present, also <type> and <docstring> are " "required. <type> is used by the CMake GUI to choose a widget with " "which the user sets a value. The value for <type> may be one of\n" " FILEPATH = File chooser dialog.\n" |