diff options
author | Brad King <brad.king@kitware.com> | 2010-12-08 18:34:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-15 19:53:46 (GMT) |
commit | 4749e4cb76cc1e23cb23f37ceec2e856a18218ce (patch) | |
tree | b7de05b3bf3564243a31cfb398d256328c6f85fa /Source/cmGeneratorExpression.h | |
parent | ef9e9de0b80a08bb9290fce3816ff621d2ff3419 (diff) | |
download | CMake-4749e4cb76cc1e23cb23f37ceec2e856a18218ce.zip CMake-4749e4cb76cc1e23cb23f37ceec2e856a18218ce.tar.gz CMake-4749e4cb76cc1e23cb23f37ceec2e856a18218ce.tar.bz2 |
Record set of targets used in cmGeneratorExpression
Diffstat (limited to 'Source/cmGeneratorExpression.h')
-rw-r--r-- | Source/cmGeneratorExpression.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpression.h b/Source/cmGeneratorExpression.h index 9bed780..1a9d4c6 100644 --- a/Source/cmGeneratorExpression.h +++ b/Source/cmGeneratorExpression.h @@ -15,6 +15,7 @@ #include <cmsys/RegularExpression.hxx> +class cmTarget; class cmMakefile; class cmListFileBacktrace; @@ -38,6 +39,10 @@ public: /** Evaluate generator expressions in a string. */ const char* Process(std::string const& input); const char* Process(const char* input); + + /** Get set of targets found during evaluations. */ + std::set<cmTarget*> const& GetTargets() const + { return this->Targets; } private: cmMakefile* Makefile; const char* Config; @@ -46,6 +51,7 @@ private: std::vector<char> Data; std::stack<size_t> Barriers; cmsys::RegularExpression TargetInfo; + std::set<cmTarget*> Targets; bool Evaluate(); bool Evaluate(const char* expr, std::string& result); bool EvaluateTargetInfo(std::string& result); |