summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-27 14:04:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-08-27 14:04:09 (GMT)
commit0d0b9b52f8a538a6327e2e9f848b943474afc682 (patch)
tree31f9f4d82a1dd818df02a7697244a1760ae499ae /Source/cmState.cxx
parent6904b6efdc2ea35c3490ba33cb352b03ea3085f5 (diff)
parent637c56b4e0ce0205f3f28a670881aad07320ff17 (diff)
downloadCMake-0d0b9b52f8a538a6327e2e9f848b943474afc682.zip
CMake-0d0b9b52f8a538a6327e2e9f848b943474afc682.tar.gz
CMake-0d0b9b52f8a538a6327e2e9f848b943474afc682.tar.bz2
Merge topic 'cmState-ProjectName'
637c56b4 cmGlobalGenerator: Implement FillProjectMap in terms of cmState. b3f2299e cmState: Move ProjectName from cmMakefile. 6ce940ac cmMakefile: Use std::string in ProjectName API. e8c0341d cmMakefile: Out-of-line GetProjectName.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index a401265..b30c10b 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;
std::vector<cmState::Snapshot> Children;
@@ -1322,6 +1324,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)