Ver código fonte

Merge topic 'fbuild_fix_ide_proj' into release-4.3

78772a8020 FASTBuild: Do not add builtin targets to IDE projects

Acked-by: Kitware Robot <[email protected]>
Merge-request: !11788
Brad King 1 mês atrás
pai
commit
c19c794cc9
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      Source/cmFastbuildUtilityTargetGenerator.cxx

+ 3 - 2
Source/cmFastbuildUtilityTargetGenerator.cxx

@@ -150,7 +150,8 @@ void cmFastbuildUtilityTargetGenerator::Generate()
   this->AdditionalCleanFiles();
 
   fastbuildTarget.BasePath = this->GetMakefile()->GetCurrentSourceDirectory();
-  this->GetGlobalGenerator()->AddIDEProject(fastbuildTarget, Config);
-
+  if (this->GetGeneratorTarget()->GetType() != cmStateEnums::GLOBAL_TARGET) {
+    this->GetGlobalGenerator()->AddIDEProject(fastbuildTarget, Config);
+  }
   this->GetGlobalGenerator()->AddTarget(std::move(fastbuildTarget));
 }