summaryrefslogtreecommitdiff
path: root/Source/cmExportBuildFileGenerator.cxx
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2020-12-01 00:25:39 +0100
committerBrad King <brad.king@kitware.com>2020-12-01 07:35:17 -0500
commit38bcb5c0a3accd2dd29fb7632c6b3bf31b990d82 (patch)
treef7d364b671663d4da35cbb17131e58a84a7c54f1 /Source/cmExportBuildFileGenerator.cxx
parent5ef23640535dfd6543bd81c86282e38122169af6 (diff)
downloadcmake-38bcb5c0a3accd2dd29fb7632c6b3bf31b990d82.tar.gz
export: Do not fail generation for separate namelink only case
Update the change from commit 64690f6df0 (export: Do not fail generation for namelink-only case, 2020-10-09, v3.19.0-rc1~7^2) to also handle separate namelink-only and namelink-skip calls. Fixes: #21529
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r--Source/cmExportBuildFileGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx
index dd700c5edf..1a31ae4afd 100644
--- a/Source/cmExportBuildFileGenerator.cxx
+++ b/Source/cmExportBuildFileGenerator.cxx
@@ -288,6 +288,9 @@ void cmExportBuildFileGenerator::GetTargets(
if (this->ExportSet) {
for (std::unique_ptr<cmTargetExport> const& te :
this->ExportSet->GetTargetExports()) {
+ if (te->NamelinkOnly) {
+ continue;
+ }
targets.push_back(te->TargetName);
}
return;