Ver código fonte

cmGeneratorTarget: discover synthetic targets recursively

Fixes: #25288
Ben Boeckel 1 ano atrás
pai
commit
ec348ee4b9
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      Source/cmGeneratorTarget.cxx

+ 1 - 0
Source/cmGeneratorTarget.cxx

@@ -8380,6 +8380,7 @@ bool cmGeneratorTarget::DiscoverSyntheticTargets(cmSyntheticTargetCache& cache,
         auto gtp = cm::make_unique<cmGeneratorTarget>(tgt, lg);
         auto gtp = cm::make_unique<cmGeneratorTarget>(tgt, lg);
         synthDep = gtp.get();
         synthDep = gtp.get();
         cache.CxxModuleTargets[targetName] = synthDep;
         cache.CxxModuleTargets[targetName] = synthDep;
+        gtp->DiscoverSyntheticTargets(cache, config);
         lg->AddGeneratorTarget(std::move(gtp));
         lg->AddGeneratorTarget(std::move(gtp));
       } else {
       } else {
         synthDep = cached->second;
         synthDep = cached->second;