From 8680520feab8421f79c9762f1d3b6b92384c0b1e Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 4 Jun 2015 19:42:32 +0200 Subject: cmMakefile: Make the cmState::Snapshot accessible. --- Source/cmMakefile.cxx | 5 +++++ Source/cmMakefile.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index b5d976a..06febbf 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4657,6 +4657,11 @@ void cmMakefile::StoreMatches(cmsys::RegularExpression& re) this->MarkVariableAsUsed(nMatchesVariable); } +cmState::Snapshot cmMakefile::GetStateSnapshot() const +{ + return this->StateSnapshot; +} + //---------------------------------------------------------------------------- cmPolicies::PolicyStatus cmMakefile::GetPolicyStatus(cmPolicies::PolicyID id) const diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 431ed08..fa9f23d 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -819,6 +819,8 @@ public: void ClearMatches(); void StoreMatches(cmsys::RegularExpression& re); + cmState::Snapshot GetStateSnapshot() const; + protected: // add link libraries and directories to the target void AddGlobalLinkInformation(const std::string& name, cmTarget& target); -- cgit v0.12