diff options
author | Brad King <brad.king@kitware.com> | 2024-04-30 14:10:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-04-30 14:10:34 (GMT) |
commit | c5d8fa3f2c478c4dd3d822a8cede018d2e6697b5 (patch) | |
tree | 825785832175e14dbe9ce398d90cffae12b0eae9 /Source | |
parent | 8f44e1a07b16aba866cc28d635e41aca3744d8c4 (diff) | |
parent | 2041f7c9bf0ccdf1afc1be829d00977a46f280bb (diff) | |
download | CMake-c5d8fa3f2c478c4dd3d822a8cede018d2e6697b5.zip CMake-c5d8fa3f2c478c4dd3d822a8cede018d2e6697b5.tar.gz CMake-c5d8fa3f2c478c4dd3d822a8cede018d2e6697b5.tar.bz2 |
Merge topic 'exported-modules-with-headers' into release-3.29
2041f7c9bf cmGeneratorTarget: add the original target as a COMPILE_ONLY link
051c2110c8 Tests/CXXModules: test exporting modules which include headers
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9469
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index a40af8b..f507807 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8483,6 +8483,10 @@ bool cmGeneratorTarget::DiscoverSyntheticTargets(cmSyntheticTargetCache& cache, // generation. tgt->CopyImportedCxxModulesProperties(model); + tgt->AddLinkLibrary(*mf, + cmStrCat("$<COMPILE_ONLY:", model->GetName(), '>'), + GENERAL_LibraryType); + // Apply usage requirements to the target. usage.ApplyToTarget(tgt); |