summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-12 13:26:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-28 05:50:57 (GMT)
commitae6c8a9d68120229a2960a83b51241fdb926700a (patch)
tree89ae365d8ec15b0a2cf1c828a3474a2a44f4de76 /Source/cmake.cxx
parent86f3cd0f7e0e0a0db210b5ed3f01766624dbc67f (diff)
downloadCMake-ae6c8a9d68120229a2960a83b51241fdb926700a.zip
CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.tar.gz
CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.tar.bz2
cmState: Store the Source and Binary directories.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f72b088..5c5c428 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -978,24 +978,22 @@ cmGlobalGenerator* cmake::CreateGlobalGenerator(const std::string& gname)
void cmake::SetHomeDirectory(const std::string& dir)
{
- this->cmHomeDirectory = dir;
- cmSystemTools::ConvertToUnixSlashes(this->cmHomeDirectory);
+ this->State->SetSourceDirectory(dir);
}
const char* cmake::GetHomeDirectory() const
{
- return this->cmHomeDirectory.c_str();
+ return this->State->GetSourceDirectory();
}
void cmake::SetHomeOutputDirectory(const std::string& dir)
{
- this->HomeOutputDirectory = dir;
- cmSystemTools::ConvertToUnixSlashes(this->HomeOutputDirectory);
+ this->State->SetBinaryDirectory(dir);
}
const char* cmake::GetHomeOutputDirectory() const
{
- return this->HomeOutputDirectory.c_str();
+ return this->State->GetBinaryDirectory();
}
void cmake::SetGlobalGenerator(cmGlobalGenerator *gg)