diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-02-16 13:42:57 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2024-02-16 16:09:56 (GMT) |
commit | 5261af94248153b66d30504bd67e288c25aad7f1 (patch) | |
tree | 1e46f8ba5c93447372df7d91750d7d24ccb1aa71 /Source | |
parent | e0633a951727b877e03d47987c264c26070b039a (diff) | |
download | CMake-5261af94248153b66d30504bd67e288c25aad7f1.zip CMake-5261af94248153b66d30504bd67e288c25aad7f1.tar.gz CMake-5261af94248153b66d30504bd67e288c25aad7f1.tar.bz2 |
cmGeneratorTarget: store synthetic targets in its cache
The synthetic target cache was never actually updated, so record them in
the cache so that reuses can actually be discovered.
Fixes: #25568
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 5b7f526..3cfa5a9 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8379,6 +8379,7 @@ bool cmGeneratorTarget::DiscoverSyntheticTargets(cmSyntheticTargetCache& cache, // Create the generator target and attach it to the local generator. auto gtp = cm::make_unique<cmGeneratorTarget>(tgt, lg); synthDep = gtp.get(); + cache.CxxModuleTargets[targetName] = synthDep; lg->AddGeneratorTarget(std::move(gtp)); } else { synthDep = cached->second; |