diff options
author | David Cole <david.cole@kitware.com> | 2011-02-02 23:18:14 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-02-02 23:18:14 (GMT) |
commit | 94d1684a8fd0de4310874cd582636a8e26402da2 (patch) | |
tree | 1c0d1dbdb4f8aedc046d6c6329002ce87f679ea7 /Source/cmMakefile.cxx | |
parent | 4f1e1fe7821da7d5af17d18f031f72daa05c89e1 (diff) | |
download | CMake-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.cxx | 5 |
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) { |