diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2020-11-30 23:25:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-01 12:35:17 (GMT) |
commit | 38bcb5c0a3accd2dd29fb7632c6b3bf31b990d82 (patch) | |
tree | f7d364b671663d4da35cbb17131e58a84a7c54f1 /Source/cmExportInstallFileGenerator.cxx | |
parent | 5ef23640535dfd6543bd81c86282e38122169af6 (diff) | |
download | CMake-38bcb5c0a3accd2dd29fb7632c6b3bf31b990d82.zip CMake-38bcb5c0a3accd2dd29fb7632c6b3bf31b990d82.tar.gz CMake-38bcb5c0a3accd2dd29fb7632c6b3bf31b990d82.tar.bz2 |
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/cmExportInstallFileGenerator.cxx')
-rw-r--r-- | Source/cmExportInstallFileGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx index 987ec9e..0b9b183 100644 --- a/Source/cmExportInstallFileGenerator.cxx +++ b/Source/cmExportInstallFileGenerator.cxx @@ -42,6 +42,9 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os) std::string sep; for (std::unique_ptr<cmTargetExport> const& te : this->IEGen->GetExportSet()->GetTargetExports()) { + if (te->NamelinkOnly) { + continue; + } expectedTargets += sep + this->Namespace + te->Target->GetExportName(); sep = " "; if (this->ExportedTargets.insert(te->Target).second) { |