diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-12 13:26:54 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-28 05:50:57 (GMT) |
commit | ae6c8a9d68120229a2960a83b51241fdb926700a (patch) | |
tree | 89ae365d8ec15b0a2cf1c828a3474a2a44f4de76 /Source/cmState.cxx | |
parent | 86f3cd0f7e0e0a0db210b5ed3f01766624dbc67f (diff) | |
download | CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.zip CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.tar.gz CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.tar.bz2 |
cmState: Store the Source and Binary directories.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 96f8a51..6fbbc4b 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -444,3 +444,25 @@ bool cmState::GetGlobalPropertyAsBool(const std::string& prop) { return cmSystemTools::IsOn(this->GetGlobalProperty(prop)); } + +void cmState::SetSourceDirectory(std::string const& sourceDirectory) +{ + this->SourceDirectory = sourceDirectory; + cmSystemTools::ConvertToUnixSlashes(this->SourceDirectory); +} + +const char* cmState::GetSourceDirectory() const +{ + return this->SourceDirectory.c_str(); +} + +void cmState::SetBinaryDirectory(std::string const& binaryDirectory) +{ + this->BinaryDirectory = binaryDirectory; + cmSystemTools::ConvertToUnixSlashes(this->BinaryDirectory); +} + +const char* cmState::GetBinaryDirectory() const +{ + return this->BinaryDirectory.c_str(); +} |