summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionDAGChecker.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-07-06 13:06:53 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-07-06 14:15:43 (GMT)
commit913ea78d7a22302fcaecb284096239bdb05b6206 (patch)
tree109938d99efb12ab3be17643e6897c9176c26085 /Source/cmGeneratorExpressionDAGChecker.h
parent4a8db1783ccc48bfdb9060dfff5775ba42cd94cb (diff)
downloadCMake-913ea78d7a22302fcaecb284096239bdb05b6206.zip
CMake-913ea78d7a22302fcaecb284096239bdb05b6206.tar.gz
CMake-913ea78d7a22302fcaecb284096239bdb05b6206.tar.bz2
Genex LINK_LIBRARY and LINK_GROUP: check supported properties
Refines check for properties supporting these genex. Enhance error message. Fixes: #23699
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.h')
-rw-r--r--Source/cmGeneratorExpressionDAGChecker.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.h b/Source/cmGeneratorExpressionDAGChecker.h
index 93b44db..55d131f 100644
--- a/Source/cmGeneratorExpressionDAGChecker.h
+++ b/Source/cmGeneratorExpressionDAGChecker.h
@@ -71,7 +71,14 @@ struct cmGeneratorExpressionDAGChecker
bool EvaluatingLinkExpression() const;
bool EvaluatingLinkOptionsExpression() const;
- bool EvaluatingLinkLibraries(cmGeneratorTarget const* tgt = nullptr) const;
+ enum class ForGenex
+ {
+ ANY,
+ LINK_LIBRARY,
+ LINK_GROUP
+ };
+ bool EvaluatingLinkLibraries(cmGeneratorTarget const* tgt = nullptr,
+ ForGenex genex = ForGenex::ANY) const;
#define DECLARE_TRANSITIVE_PROPERTY_METHOD(METHOD) bool METHOD() const;