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:36 (GMT) |
commit | 2549f5a66ec3e5ecc2354b707c43df2849519015 (patch) | |
tree | a286187eee12118381867fbeb6e7b0841400eaff /Source | |
parent | f56eb6fa88625946961f80dadca9790695c6ccf7 (diff) | |
parent | 2041f7c9bf0ccdf1afc1be829d00977a46f280bb (diff) | |
download | CMake-2549f5a66ec3e5ecc2354b707c43df2849519015.zip CMake-2549f5a66ec3e5ecc2354b707c43df2849519015.tar.gz CMake-2549f5a66ec3e5ecc2354b707c43df2849519015.tar.bz2 |
Merge topic 'exported-modules-with-headers'
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 d6560d0..8fe7032 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8595,6 +8595,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); |