summaryrefslogtreecommitdiffstats
path: root/Source/cmGetDirectoryPropertyCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-26 14:58:44 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-26 14:58:44 (GMT)
commitd8e05b43a1fc0370aa3ac84f4209b1b942809b89 (patch)
treebf36098892b3724010be9a6a1914ea4d54ca083d /Source/cmGetDirectoryPropertyCommand.h
parent2ca9a70fd1812ebcf48b07642b73b4e227cd628b (diff)
downloadCMake-d8e05b43a1fc0370aa3ac84f4209b1b942809b89.zip
CMake-d8e05b43a1fc0370aa3ac84f4209b1b942809b89.tar.gz
CMake-d8e05b43a1fc0370aa3ac84f4209b1b942809b89.tar.bz2
ENH: Update documentation of computed directory properites.
- Fix documentation of get_directory_property command. - Convert its list of computed directory properties to be defined/documented directory properties.
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.h')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h
index 542cf4c..081bf79 100644
--- a/Source/cmGetDirectoryPropertyCommand.h
+++ b/Source/cmGetDirectoryPropertyCommand.h
@@ -49,7 +49,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
- return "Get a property of the directory.";
+ return "Get a property of DIRECTORY scope.";
}
/**
@@ -58,17 +58,20 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " get_directory_property(VAR [DIRECTORY dir] property)\n"
- "Get a property from the Directory. The value of the property is "
- "stored in the variable VAR. If the property is not found, "
- "CMake will report an error. The properties include: VARIABLES, "
- "CACHE_VARIABLES, COMMANDS, MACROS, INCLUDE_DIRECTORIES, "
- "LINK_DIRECTORIES, DEFINITIONS, INCLUDE_REGULAR_EXPRESSION, "
- "LISTFILE_STACK, PARENT_DIRECTORY, and "
- "DEFINITION varname. If the DIRECTORY argument is provided then "
- "the property of the provided directory will be retrieved "
- "instead of the current directory. You can only get properties "
- "of a directory during or after it has been traversed by cmake.";
+ " get_directory_property(<variable> [DIRECTORY <dir>] <prop-name>)\n"
+ "Store a property of directory scope in the named variable. "
+ "If the property is not defined the empty-string is returned. "
+ "The DIRECTORY argument specifies another directory from which "
+ "to retrieve the property value. "
+ "The specified directory must have already been traversed by "
+ "CMake."
+ "\n"
+ " get_directory_property(<variable> [DIRECTORY <dir>]\n"
+ " DEFINITION <var-name>)\n"
+ "Get a variable definition from a directory. "
+ "This form is useful to get a variable definition from another "
+ "directory."
+ ;
}
cmTypeMacro(cmGetDirectoryPropertyCommand, cmCommand);