summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-17 17:11:48 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-17 17:11:48 (GMT)
commit2fb76a9f0704b1590f419a981c25784c1f0b932b (patch)
tree2f74b1fdc1ce02f995787ea811c5d9ba465731ee /Source
parenta37a934410aeecc172fe156d26daecca5fabfd72 (diff)
downloadCMake-2fb76a9f0704b1590f419a981c25784c1f0b932b.zip
CMake-2fb76a9f0704b1590f419a981c25784c1f0b932b.tar.gz
CMake-2fb76a9f0704b1590f419a981c25784c1f0b932b.tar.bz2
Save directories when doing global build
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 1af64c2..b23ff9d 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -881,6 +881,8 @@ int cmake::Run(const std::vector<std::string>& 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<std::string>& 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)
{