summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-02-20 12:38:58 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-02-20 15:53:31 (GMT)
commit67466ddf65aafa02a19225b306bd712c2be3fb7f (patch)
treec9544ff16b85e5455e071b95e41317c0a23bdeec /Source
parenta2e3e61a3189f56668364aa79cae97da1830231f (diff)
downloadCMake-67466ddf65aafa02a19225b306bd712c2be3fb7f.zip
CMake-67466ddf65aafa02a19225b306bd712c2be3fb7f.tar.gz
CMake-67466ddf65aafa02a19225b306bd712c2be3fb7f.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportFileGenerator.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index f2742df..64448f1 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -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;
}
}