summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakePolicyCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-22 18:16:33 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-22 18:16:33 (GMT)
commit18eadebc4c0b43443861f40ca243e18dbabb2324 (patch)
tree93bd5dfbd172646633f67fed95e9b4eac8e283c9 /Source/cmCMakePolicyCommand.h
parent26bf8b2cda2f7aec429ac478c8ef1b9dbf436142 (diff)
downloadCMake-18eadebc4c0b43443861f40ca243e18dbabb2324.zip
CMake-18eadebc4c0b43443861f40ca243e18dbabb2324.tar.gz
CMake-18eadebc4c0b43443861f40ca243e18dbabb2324.tar.bz2
ENH: Improve stack discussion in cmake_policy
This re-organizes the discussion of the policy stack in documentation of the cmake_policy() command. The new organization clearer and easier to extend with new information.
Diffstat (limited to 'Source/cmCMakePolicyCommand.h')
-rw-r--r--Source/cmCMakePolicyCommand.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/cmCMakePolicyCommand.h b/Source/cmCMakePolicyCommand.h
index e478811..d2315ea 100644
--- a/Source/cmCMakePolicyCommand.h
+++ b/Source/cmCMakePolicyCommand.h
@@ -113,16 +113,17 @@ public:
"The output variable value will be \"OLD\" or \"NEW\" if the "
"policy is set, and empty otherwise."
"\n"
+ "CMake keeps policy settings on a stack, so changes made by the "
+ "cmake_policy command affect only the top of the stack. "
+ "A new entry on the policy stack is managed automatically for each "
+ "subdirectory to protect its parents and siblings. "
+ "The cmake_policy command provides an interface to manage custom "
+ "entries on the policy stack:\n"
" cmake_policy(PUSH)\n"
" cmake_policy(POP)\n"
- "Push and pop the current policy setting state on a stack. "
- "Each PUSH must have a matching POP. "
- "This is useful when mixing multiple projects, subprojects, and "
- "files included from external projects that may each have been "
- "written for a different version of CMake. "
- "Each subdirectory entered by the project automatically pushes "
- "a new level on the stack to isolate the subdirectories from "
- "their parents.";
+ "Each PUSH must have a matching POP to erase any changes. "
+ "This is useful to make temporary changes to policy settings."
+ ;
}
cmTypeMacro(cmCMakePolicyCommand, cmCommand);