summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentVariables.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-02-02 23:18:14 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-02-02 23:18:14 (GMT)
commit94d1684a8fd0de4310874cd582636a8e26402da2 (patch)
tree1c0d1dbdb4f8aedc046d6c6329002ce87f679ea7 /Source/cmDocumentVariables.cxx
parent4f1e1fe7821da7d5af17d18f031f72daa05c89e1 (diff)
downloadCMake-94d1684a8fd0de4310874cd582636a8e26402da2.zip
CMake-94d1684a8fd0de4310874cd582636a8e26402da2.tar.gz
CMake-94d1684a8fd0de4310874cd582636a8e26402da2.tar.bz2
Add CMAKE_SCRIPT_MODE_FILE variable (#2828)
New CMake variable is set when processing a -P script file, but not when configuring a project.
Diffstat (limited to 'Source/cmDocumentVariables.cxx')
-rw-r--r--Source/cmDocumentVariables.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx
index 6fffecb..897881c 100644
--- a/Source/cmDocumentVariables.cxx
+++ b/Source/cmDocumentVariables.cxx
@@ -97,6 +97,14 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
"Variables that Provide Information");
cm->DefineProperty
+ ("CMAKE_SCRIPT_MODE_FILE", cmProperty::VARIABLE,
+ "Full path to the -P script file currently being processed. ",
+ "When run in -P script mode, CMake sets this variable to the full "
+ "path of the script file. When run to configure a CMakeLists.txt "
+ "file, this variable is not set.", 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"