mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 12:19:41 -06:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user