summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-12-22 10:41:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-12-22 10:41:53 (GMT)
commitaaf4367371c827635c0cf2f70a34ce59e2bcd841 (patch)
treed8f3557cc74fe977dc5d061d1d21fd5f9444786c
parente9dc092c765bf704f30bfbb4302ed10b3237b599 (diff)
parent74638c47ff238f15ee7548f1084e3e9297c5395d (diff)
downloadCMake-aaf4367371c827635c0cf2f70a34ce59e2bcd841.zip
CMake-aaf4367371c827635c0cf2f70a34ce59e2bcd841.tar.gz
CMake-aaf4367371c827635c0cf2f70a34ce59e2bcd841.tar.bz2
Merge topic 'STATIC_LIBRARY_OPTIONS-property-fix-genex-expension'
74638c47ff STATIC_LIBRARY_OPTIONS: ensure correct expension of list inside a genex Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8038
-rw-r--r--Source/cmGeneratorTarget.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 7ecdd87..d0d339d 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -4856,13 +4856,10 @@ std::vector<BT<std::string>> cmGeneratorTarget::GetStaticLibraryLinkOptions(
EvaluatedTargetPropertyEntries entries;
if (cmValue linkOptions = this->GetProperty("STATIC_LIBRARY_OPTIONS")) {
- std::vector<std::string> options = cmExpandedList(*linkOptions);
- for (const auto& option : options) {
- std::unique_ptr<TargetPropertyEntry> entry = CreateTargetPropertyEntry(
- *this->LocalGenerator->GetCMakeInstance(), option);
- entries.Entries.emplace_back(EvaluateTargetPropertyEntry(
- this, config, language, &dagChecker, *entry));
- }
+ std::unique_ptr<TargetPropertyEntry> entry = CreateTargetPropertyEntry(
+ *this->LocalGenerator->GetCMakeInstance(), *linkOptions);
+ entries.Entries.emplace_back(EvaluateTargetPropertyEntry(
+ this, config, language, &dagChecker, *entry));
}
processOptions(this, entries, result, uniqueOptions, false,
"static library link options", OptionsParse::Shell);