mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
cmExportFileGenerator: export link libraries as-is
This allows for transitive modules to work because `$<COMPILE_ONLY>`-wrapped dependencies do not end up in the `linked-target-dirs` collator property. Test suite exported property tests updated to account for the change.
This commit is contained in:
@@ -1360,11 +1360,7 @@ bool cmExportFileGenerator::PopulateCxxModuleExportProperties(
|
||||
auto value = cmGeneratorExpression::Preprocess(*prop, ctx);
|
||||
this->ResolveTargetsInGeneratorExpressions(
|
||||
value, gte, cmExportFileGenerator::ReplaceFreeTargets);
|
||||
std::vector<std::string> wrappedValues;
|
||||
for (auto& item : cmList{ value }) {
|
||||
wrappedValues.push_back(cmStrCat("$<COMPILE_ONLY:", item, '>'));
|
||||
}
|
||||
properties[exportedPropName] = cmJoin(wrappedValues, ";");
|
||||
properties[exportedPropName] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user