[Cmake-commits] [cmake-commits] king committed cmGetDirectoryPropertyCommand.h 1.8 1.9 cmMakefile.cxx 1.475 1.476
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jun 26 10:58:46 EDT 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv31738/Source
Modified Files:
cmGetDirectoryPropertyCommand.h cmMakefile.cxx
Log Message:
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.
Index: cmGetDirectoryPropertyCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGetDirectoryPropertyCommand.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** cmGetDirectoryPropertyCommand.h 23 Jan 2008 15:27:59 -0000 1.8
--- cmGetDirectoryPropertyCommand.h 26 Jun 2008 14:58:44 -0000 1.9
***************
*** 50,54 ****
virtual const char* GetTerseDocumentation()
{
! return "Get a property of the directory.";
}
--- 50,54 ----
virtual const char* GetTerseDocumentation()
{
! return "Get a property of DIRECTORY scope.";
}
***************
*** 59,73 ****
{
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.";
}
--- 59,76 ----
{
return
! " 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."
! ;
}
Index: cmMakefile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.cxx,v
retrieving revision 1.475
retrieving revision 1.476
diff -C 2 -d -r1.475 -r1.476
*** cmMakefile.cxx 26 Jun 2008 14:58:16 -0000 1.475
--- cmMakefile.cxx 26 Jun 2008 14:58:44 -0000 1.476
***************
*** 3192,3196 ****
"are currently being processed, in order. So if one listfile "
"does an INCLUDE command then that is effectively pushing "
! "the included listfile onto the stack.");
cm->DefineProperty
--- 3192,3196 ----
"are currently being processed, in order. So if one listfile "
"does an INCLUDE command then that is effectively pushing "
! "the included listfile onto the stack.", false);
cm->DefineProperty
***************
*** 3261,3264 ****
--- 3261,3322 ----
"The same concept applies to the default build of other generators.",
false);
+
+ cm->DefineProperty
+ ("PARENT_DIRECTORY", cmProperty::DIRECTORY,
+ "Source directory that added current subdirectory.",
+ "This read-only property specifies the source directory that "
+ "added the current source directory as a subdirectory of the build. "
+ "In the top-level directory the value is the empty-string.", false);
+
+ cm->DefineProperty
+ ("INCLUDE_REGULAR_EXPRESSION", cmProperty::DIRECTORY,
+ "Include file scanning regular expression.",
+ "This read-only property specifies the regular expression used "
+ "during dependency scanning to match include files that should "
+ "be followed. See the include_regular_expression command.", false);
+
+ cm->DefineProperty
+ ("VARIABLES", cmProperty::DIRECTORY,
+ "List of variables defined in the current directory.",
+ "This read-only property specifies the list of CMake variables "
+ "currently defined. "
+ "It is intended for debugging purposes.", false);
+
+ cm->DefineProperty
+ ("CACHE_VARIABLES", cmProperty::DIRECTORY,
+ "List of cache variables available in the current directory.",
+ "This read-only property specifies the list of CMake cache "
+ "variables currently defined. "
+ "It is intended for debugging purposes.", false);
+
+ cm->DefineProperty
+ ("MACROS", cmProperty::DIRECTORY,
+ "List of macro commands available in the current directory.",
+ "This read-only property specifies the list of CMake macros "
+ "currently defined. "
+ "It is intended for debugging purposes. "
+ "See the macro command.", false);
+
+ cm->DefineProperty
+ ("DEFINITIONS", cmProperty::DIRECTORY,
+ "For CMake 2.4 compatibility only. Use COMPILE_DEFINITIONS instead.",
+ "This read-only property specifies the list of flags given so far "
+ "to the add_definitions command. "
+ "It is intended for debugging purposes. "
+ "Use the COMPILE_DEFINITIONS instead.", false);
+
+ cm->DefineProperty
+ ("INCLUDE_DIRECTORIES", cmProperty::DIRECTORY,
+ "List of preprocessor include file search directories.",
+ "This read-only property specifies the list of directories given "
+ "so far to the include_directories command. "
+ "It is intended for debugging purposes.", false);
+
+ cm->DefineProperty
+ ("LINK_DIRECTORIES", cmProperty::DIRECTORY,
+ "List of linker search directories.",
+ "This read-only property specifies the list of directories given "
+ "so far to the link_directories command. "
+ "It is intended for debugging purposes.", false);
}
More information about the Cmake-commits
mailing list