diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-01-18 20:52:54 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-01-18 20:52:54 (GMT) |
commit | fc8ce174334c3c33141d37ff2b86ea50226b7ce4 (patch) | |
tree | 1f911b47f1b323c1c8250cd6cc89c427c87e0860 /Source/cmSetCommand.h | |
parent | e5a4da5b3c930bf19710db638f3d1b86ccbfb3aa (diff) | |
download | CMake-fc8ce174334c3c33141d37ff2b86ea50226b7ce4.zip CMake-fc8ce174334c3c33141d37ff2b86ea50226b7ce4.tar.gz CMake-fc8ce174334c3c33141d37ff2b86ea50226b7ce4.tar.bz2 |
ENH: remove RAISE_SCOPE() again and instead add SET(<var> <value> PARENT_SCOPE)
Alex
Diffstat (limited to 'Source/cmSetCommand.h')
-rw-r--r-- | Source/cmSetCommand.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmSetCommand.h b/Source/cmSetCommand.h index 48b0642..6f6ecd2 100644 --- a/Source/cmSetCommand.h +++ b/Source/cmSetCommand.h @@ -65,7 +65,8 @@ public: virtual const char* GetFullDocumentation() { return - " set(<variable> <value> [CACHE <type> <docstring> [FORCE]])\n" + " set(<variable> <value> [[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 " @@ -81,6 +82,12 @@ public: "cache variable, then this always writes into the current makefile. The " "FORCE option will overwrite the cache value removing any changes by " "the user.\n" + "If PARENT_SCOPE is present, the variable will be set in the scope " + "above the current scope. Each new directory or function creates a new " + "scope. This command will set the value of a variable into the parent " + "directory or calling function (whichever is applicable to the case at " + "hand) If VALUE is not specified then the variable is removed from the " + "parent scope.\n" " set(<variable> <value1> ... <valueN>)\n" "In this case <variable> is set to a semicolon separated list of " "values.\n" |