summaryrefslogtreecommitdiffstats
path: root/Source/cmUnsetCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-08 12:37:47 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-08 12:37:50 (GMT)
commit261c248254faf2fc09d71f456f018b7f8bc9a7f1 (patch)
treea23655839e6c669b682f6fff74d78a8a17dfc821 /Source/cmUnsetCommand.h
parent1d9af198a8ea4e9329839c2e1f101106d8bdf505 (diff)
downloadCMake-261c248254faf2fc09d71f456f018b7f8bc9a7f1.zip
CMake-261c248254faf2fc09d71f456f018b7f8bc9a7f1.tar.gz
CMake-261c248254faf2fc09d71f456f018b7f8bc9a7f1.tar.bz2
unset: Add PARENT_SCOPE option
Add an unset() command option to remove a variable from the calling scope, just like the set() command's PARENT_SCOPE option. Teach the Unset test to cover such cases.
Diffstat (limited to 'Source/cmUnsetCommand.h')
-rw-r--r--Source/cmUnsetCommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmUnsetCommand.h b/Source/cmUnsetCommand.h
index 9cf95d9..a477f19 100644
--- a/Source/cmUnsetCommand.h
+++ b/Source/cmUnsetCommand.h
@@ -61,10 +61,13 @@ public:
virtual const char* GetFullDocumentation() const
{
return
- " unset(<variable> [CACHE])\n"
+ " unset(<variable> [CACHE | PARENT_SCOPE])\n"
"Removes the specified variable causing it to become undefined. "
"If CACHE is present then the variable is removed from the cache "
"instead of the current scope.\n"
+ "If PARENT_SCOPE is present then the variable is removed from the "
+ "scope above the current scope. See the same option in the set() "
+ "command for further details.\n"
"<variable> can be an environment variable such as:\n"
" unset(ENV{LD_LIBRARY_PATH})\n"
"in which case the variable will be removed from the current "