summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-26 18:22:32 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-26 19:43:38 (GMT)
commit2ae72ef74b1a8b3034c4685de68f39d1e198a84c (patch)
treedfb679eab0966fd6a64f3859f593fad279723c14 /Source/cmGeneratorTarget.cxx
parentc5657a2fe42a0de7a5724507888f9f6f1afff8ea (diff)
downloadCMake-2ae72ef74b1a8b3034c4685de68f39d1e198a84c.zip
CMake-2ae72ef74b1a8b3034c4685de68f39d1e198a84c.tar.gz
CMake-2ae72ef74b1a8b3034c4685de68f39d1e198a84c.tar.bz2
Xcode: Enable multi-arch TARGET_OBJECTS genex in [INTERFACE_]LINK_LIBRARIES
This was an oversight in the original implementation.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index e2ec82a..a7d825d 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -6291,6 +6291,7 @@ void cmGeneratorTarget::ExpandLinkItems(
}
std::vector<std::string> libs;
std::unique_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
+ cge->SetEvaluateForBuildsystem(true);
cmExpandList(cge->Evaluate(this->LocalGenerator, config, headTarget,
&dagChecker, this, headTarget->LinkerLanguage),
libs);
@@ -7428,6 +7429,7 @@ void cmGeneratorTarget::ComputeLinkImplementationLibraries(
nullptr);
cmGeneratorExpression ge(*btIt);
std::unique_ptr<cmCompiledGeneratorExpression> const cge = ge.Parse(*le);
+ cge->SetEvaluateForBuildsystem(true);
std::string const& evaluated =
cge->Evaluate(this->LocalGenerator, config, head, &dagChecker, nullptr,
this->LinkerLanguage);