summaryrefslogtreecommitdiffstats
path: root/Source/cmFunctionCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-22 18:16:47 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-22 18:16:47 (GMT)
commit3028ca756c8621b3cc37032987eb01fbe61da248 (patch)
tree1a32991d7d25cefaa5b214759d84ab2c20a3c0b5 /Source/cmFunctionCommand.h
parent18eadebc4c0b43443861f40ca243e18dbabb2324 (diff)
downloadCMake-3028ca756c8621b3cc37032987eb01fbe61da248.zip
CMake-3028ca756c8621b3cc37032987eb01fbe61da248.tar.gz
CMake-3028ca756c8621b3cc37032987eb01fbe61da248.tar.bz2
ENH: Better policies for functions and macros
This teaches functions and macros to use policies recorded at creation time when they are invoked. It restores the policies as a weak policy stack entry so that any policies set by a function escape to its caller as before.
Diffstat (limited to 'Source/cmFunctionCommand.h')
-rw-r--r--Source/cmFunctionCommand.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFunctionCommand.h b/Source/cmFunctionCommand.h
index b9f9010..ced8218 100644
--- a/Source/cmFunctionCommand.h
+++ b/Source/cmFunctionCommand.h
@@ -104,7 +104,11 @@ public:
"will have the actual values of the arguments passed in. This "
"facilitates creating functions with optional arguments. Additionally "
"ARGV holds the list of all arguments given to the function and ARGN "
- "holds the list of argument pass the last expected argument.";
+ "holds the list of argument pass the last expected argument."
+ "\n"
+ "See the cmake_policy() command documentation for the behavior of "
+ "policies inside functions."
+ ;
}
cmTypeMacro(cmFunctionCommand, cmCommand);