From 6d4b7425fdd5220c5875ee814ddcf7f516d783c9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 7 Mar 2006 14:46:50 -0500 Subject: [PATCH] ENH: Add CMAKE_COMMAND and CMAKE_ROOT variables when running in script mode. This partially addresses bug#2828. --- Source/cmake.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index a1a7bfc4b..451dbc78b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1469,6 +1469,10 @@ int cmake::Run(const std::vector& args, bool noconfigure) return -1; } } + else + { + this->AddCMakePaths(m_CMakeCommand.c_str()); + } // Add any cache args if ( !this->SetCacheArgs(args) )