diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-09-24 13:06:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-09-24 13:06:56 (GMT) |
commit | 0ad2a1c18148b995a6a13be32ce93a625332defd (patch) | |
tree | 541e96e48f8034dc7b3e6bf4d24542bd1d218413 /Source/cmExportFileGenerator.cxx | |
parent | faef6b4ec8141b0a3458a4c9af0136b77581ea71 (diff) | |
download | CMake-0ad2a1c18148b995a6a13be32ce93a625332defd.zip CMake-0ad2a1c18148b995a6a13be32ce93a625332defd.tar.gz CMake-0ad2a1c18148b995a6a13be32ce93a625332defd.tar.bz2 |
Export: Never treat private link libraries as public package dependencies.
Multiple libraries in a single buildsystem can be exported to multiple
export-sets.
If a library from one export set depends on a library from
another export set, the export logic generates a check in the targets
file to verify that the target in the other export set is found. That
check is executed at downstream-find_package-time.
However, a target may depend privately on a target in another export
set. In that case, the depend used to also be listed in the required
targets in the targets file. Change the export logic to ignore the
private link entries instead.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index ef336ea..0a93533 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -736,9 +736,10 @@ cmExportFileGenerator "IMPORTED_LINK_INTERFACE_LANGUAGES", iface->Languages, properties, missingTargets); + std::vector<std::string> dummy; this->SetImportLinkProperty(suffix, target, "IMPORTED_LINK_DEPENDENT_LIBRARIES", - iface->SharedDeps, properties, missingTargets); + iface->SharedDeps, properties, dummy); if(iface->Multiplicity > 0) { std::string prop = "IMPORTED_LINK_INTERFACE_MULTIPLICITY"; |