|
@@ -21,21 +21,22 @@ cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
|
|
|
cmGeneratorTarget const* target, std::string property,
|
|
|
GeneratorExpressionContent const* content,
|
|
|
cmGeneratorExpressionDAGChecker* parent, cmLocalGenerator const* contextLG,
|
|
|
- std::string const& contextConfig, cmListFileBacktrace backtrace)
|
|
|
+ std::string const& contextConfig, cmListFileBacktrace backtrace,
|
|
|
+ ComputingLinkLibraries computingLinkLibraries)
|
|
|
: Parent(parent)
|
|
|
, Top(parent ? parent->Top : this)
|
|
|
, Target(target)
|
|
|
, Property(std::move(property))
|
|
|
, Content(content)
|
|
|
, Backtrace(std::move(backtrace))
|
|
|
+ , ComputingLinkLibraries_(computingLinkLibraries)
|
|
|
{
|
|
|
if (parent) {
|
|
|
this->TopIsTransitiveProperty = parent->TopIsTransitiveProperty;
|
|
|
} else {
|
|
|
this->TopIsTransitiveProperty =
|
|
|
this->Target
|
|
|
- ->IsTransitiveProperty(this->Property, contextLG, contextConfig,
|
|
|
- this->EvaluatingLinkLibraries())
|
|
|
+ ->IsTransitiveProperty(this->Property, contextLG, contextConfig, this)
|
|
|
.has_value();
|
|
|
}
|
|
|
|
|
@@ -193,6 +194,11 @@ bool cmGeneratorExpressionDAGChecker::EvaluatingLinkerLauncher() const
|
|
|
"_LINKER_LAUNCHER"_s;
|
|
|
}
|
|
|
|
|
|
+bool cmGeneratorExpressionDAGChecker::IsComputingLinkLibraries() const
|
|
|
+{
|
|
|
+ return this->Top->ComputingLinkLibraries_ == ComputingLinkLibraries::Yes;
|
|
|
+}
|
|
|
+
|
|
|
bool cmGeneratorExpressionDAGChecker::EvaluatingLinkLibraries(
|
|
|
cmGeneratorTarget const* tgt, ForGenex genex) const
|
|
|
{
|