mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user