summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-04 21:08:19 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-16 06:12:01 (GMT)
commit991f5e4968ce7b86aea12224b4cecc1be3ed92d9 (patch)
treeed86360fdaa42be85834ef9da62fdf23c3e15c7e /Source/cmState.h
parent57bdc1a2f7d416c106c4bef8f3543eec74c3c391 (diff)
downloadCMake-991f5e4968ce7b86aea12224b4cecc1be3ed92d9.zip
CMake-991f5e4968ce7b86aea12224b4cecc1be3ed92d9.tar.gz
CMake-991f5e4968ce7b86aea12224b4cecc1be3ed92d9.tar.bz2
cmState::Snapshot: Store components for current directories.
Remove this responsibility from cmLocalGenerator.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 956b4f4..faf0739 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -36,6 +36,9 @@ public:
const char* GetCurrentBinaryDirectory() const;
void SetCurrentBinaryDirectory(std::string const& dir);
+ std::vector<std::string> const& GetCurrentSourceDirectoryComponents();
+ std::vector<std::string> const& GetCurrentBinaryDirectoryComponents();
+
bool IsValid() const;
Snapshot GetParent() const;
@@ -136,6 +139,9 @@ private:
std::vector<std::string> OutputLocations;
std::vector<PositionType> ParentPositions;
+ std::vector<std::vector<std::string> > CurrentSourceDirectoryComponents;
+ std::vector<std::vector<std::string> > CurrentBinaryDirectoryComponents;
+
std::vector<std::string> SourceDirectoryComponents;
std::vector<std::string> BinaryDirectoryComponents;
std::string SourceDirectory;