summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionDAGChecker.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@sap.com>2018-04-13 14:16:32 (GMT)
committerMarc Chevrier <marc.chevrier@sap.com>2018-04-23 09:13:52 (GMT)
commit4d15046eddcd6326fd7229adcb3bdb93717f3e06 (patch)
tree1703b6f342f434aea4c038587538f77dbeb806e6 /Source/cmGeneratorExpressionDAGChecker.cxx
parent1f372ac4e52ac7de65d3fc855b280388b70203f3 (diff)
downloadCMake-4d15046eddcd6326fd7229adcb3bdb93717f3e06.zip
CMake-4d15046eddcd6326fd7229adcb3bdb93717f3e06.tar.gz
CMake-4d15046eddcd6326fd7229adcb3bdb93717f3e06.tar.bz2
Genex: Add $<TARGET_GENEX_EVAL:...> and $<GENEX_EVAL:...>
Fixes: #17884
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.cxx')
-rw-r--r--Source/cmGeneratorExpressionDAGChecker.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.cxx b/Source/cmGeneratorExpressionDAGChecker.cxx
index f0eafb4..face282 100644
--- a/Source/cmGeneratorExpressionDAGChecker.cxx
+++ b/Source/cmGeneratorExpressionDAGChecker.cxx
@@ -154,6 +154,18 @@ bool cmGeneratorExpressionDAGChecker::GetTransitivePropertiesOnly()
return top->TransitivePropertiesOnly;
}
+bool cmGeneratorExpressionDAGChecker::EvaluatingGenexExpression()
+{
+ const cmGeneratorExpressionDAGChecker* top = this;
+ const cmGeneratorExpressionDAGChecker* parent = this->Parent;
+ while (parent) {
+ top = parent;
+ parent = parent->Parent;
+ }
+
+ return top->Property == "TARGET_GENEX_EVAL" || top->Property == "GENEX_EVAL";
+}
+
bool cmGeneratorExpressionDAGChecker::EvaluatingLinkLibraries(const char* tgt)
{
const cmGeneratorExpressionDAGChecker* top = this;