summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.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/cmMakefile.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/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index e14e44d..daea7bf 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2744,6 +2744,11 @@ void cmMakefile::SetHomeOutputDirectory(const char* lib)
}
}
+void cmMakefile::SetScriptModeFile(const char* scriptfile)
+{
+ this->AddDefinition("CMAKE_SCRIPT_MODE_FILE", scriptfile);
+}
+
//----------------------------------------------------------------------------
cmSourceFile* cmMakefile::GetSource(const char* sourceName)
{