diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-02 07:41:06 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-25 17:57:42 (GMT) |
commit | b3f2299e0600f3488aaeb78ebf66d1108201ea17 (patch) | |
tree | 2f193d7800f2ed121af8f9b76983d25ccacd7f3f /Source/cmState.cxx | |
parent | 6ce940ac9701c93be01ed169c6bd23b22e04782f (diff) | |
download | CMake-b3f2299e0600f3488aaeb78ebf66d1108201ea17.zip CMake-b3f2299e0600f3488aaeb78ebf66d1108201ea17.tar.gz CMake-b3f2299e0600f3488aaeb78ebf66d1108201ea17.tar.bz2 |
cmState: Move ProjectName from cmMakefile.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 53fdae0..6cd58b6 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -75,6 +75,8 @@ struct cmState::BuildsystemDirectoryStateType std::vector<std::string> CompileOptions; std::vector<cmListFileBacktrace> CompileOptionsBacktraces; + std::string ProjectName; + cmPropertyMap Properties; }; @@ -1312,6 +1314,16 @@ cmState::Directory cmState::Snapshot::GetDirectory() const return Directory(this->Position->BuildSystemDirectory, *this); } +void cmState::Snapshot::SetProjectName(const std::string& name) +{ + this->Position->BuildSystemDirectory->ProjectName = name; +} + +std::string cmState::Snapshot::GetProjectName() const +{ + return this->Position->BuildSystemDirectory->ProjectName; +} + cmState::Directory::Directory( cmLinkedTree<BuildsystemDirectoryStateType>::iterator iter, const cmState::Snapshot& snapshot) |