From 2fb76a9f0704b1590f419a981c25784c1f0b932b Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 17 Dec 2002 12:11:48 -0500 Subject: [PATCH] Save directories when doing global build --- Source/cmake.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 1af64c2c1..b23ff9d90 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -881,6 +881,8 @@ int cmake::Run(const std::vector& args) { // If we are doing global generate, we better set start and start // output directory to the root of the project. + std::string oldstartdir = this->GetStartDirectory(); + std::string oldstartoutputdir = this->GetStartOutputDirectory(); this->SetStartDirectory(this->GetHomeDirectory()); this->SetStartOutputDirectory(this->GetHomeOutputDirectory()); bool saveLocalFlag = m_Local; @@ -896,7 +898,10 @@ int cmake::Run(const std::vector& args) return ret; } m_Local = saveLocalFlag; + this->SetStartDirectory(oldstartdir.c_str()); + this->SetStartOutputDirectory(oldstartoutputdir.c_str()); } + // if we are local do the local thing if (m_Local) {