diff options
author | David Cole <david.cole@kitware.com> | 2011-02-03 02:17:23 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-02-03 02:19:01 (GMT) |
commit | 106958c047c9af783b0216916c8e0d8c52595ff6 (patch) | |
tree | bf0cf3c08822dda3fe0cdf360128f971e89d3e4f /Source/cmDocumentVariables.cxx | |
parent | 94d1684a8fd0de4310874cd582636a8e26402da2 (diff) | |
download | CMake-106958c047c9af783b0216916c8e0d8c52595ff6.zip CMake-106958c047c9af783b0216916c8e0d8c52595ff6.tar.gz CMake-106958c047c9af783b0216916c8e0d8c52595ff6.tar.bz2 |
Add CMAKE_ARGC and CMAKE_ARGV0..N-1 variables (#2828)
For now, these variables are only available in -P script mode.
Diffstat (limited to 'Source/cmDocumentVariables.cxx')
-rw-r--r-- | Source/cmDocumentVariables.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx index 897881c..a08f95c 100644 --- a/Source/cmDocumentVariables.cxx +++ b/Source/cmDocumentVariables.cxx @@ -105,6 +105,22 @@ void cmDocumentVariables::DefineVariables(cmake* cm) "Variables that Provide Information"); cm->DefineProperty + ("CMAKE_ARGC", cmProperty::VARIABLE, + "Number of command line arguments passed to CMake in script mode. ", + "When run in -P script mode, CMake sets this variable to the number " + "of command line arguments. See also CMAKE_ARGV0, 1, 2 ... ", false, + "Variables that Provide Information"); + + cm->DefineProperty + ("CMAKE_ARGV0", cmProperty::VARIABLE, + "Command line argument passed to CMake in script mode. ", + "When run in -P script mode, CMake sets this variable to " + "the first command line argument. It then also sets CMAKE_ARGV1, " + "CMAKE_ARGV2, ... and so on, up to the number of command line arguments " + "given. See also CMAKE_ARGC.", false, + "Variables that Provide Information"); + + cm->DefineProperty ("CMAKE_BUILD_TOOL", cmProperty::VARIABLE, "Tool used for the actual build process.", "This variable is set to the program that will be" |