summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-07 19:46:50 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-07 19:46:50 (GMT)
commit6d4b7425fdd5220c5875ee814ddcf7f516d783c9 (patch)
tree98396d1dff910f3ac6c212d54eee1d779cf8f1b6 /Source/cmake.cxx
parentc21a61c91a2b847df782712d7f90e58df77fa341 (diff)
downloadCMake-6d4b7425fdd5220c5875ee814ddcf7f516d783c9.zip
CMake-6d4b7425fdd5220c5875ee814ddcf7f516d783c9.tar.gz
CMake-6d4b7425fdd5220c5875ee814ddcf7f516d783c9.tar.bz2
ENH: Add CMAKE_COMMAND and CMAKE_ROOT variables when running in script mode. This partially addresses bug#2828.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index a1a7bfc..451dbc7 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1469,6 +1469,10 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
return -1;
}
}
+ else
+ {
+ this->AddCMakePaths(m_CMakeCommand.c_str());
+ }
// Add any cache args
if ( !this->SetCacheArgs(args) )