Browse Source

ENH: make sure ALL_BUILD only shows up once

Bill Hoffman 17 năm trước cách đây
mục cha
commit
852f6018bb
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      Source/cmGlobalVisualStudio7Generator.cxx

+ 3 - 1
Source/cmGlobalVisualStudio7Generator.cxx

@@ -336,9 +336,11 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
       {
       bool skip = false;
       // if it is a global target or the check build system target
+      // or the all_build target
       // then only use the one that is for the root
       if(target->GetType() == cmTarget::GLOBAL_TARGET
-         || !strcmp(target->GetName(), CMAKE_CHECK_BUILD_SYSTEM_TARGET))
+         || !strcmp(target->GetName(), CMAKE_CHECK_BUILD_SYSTEM_TARGET)
+         || !strcmp(target->GetName(), this->GetAllTargetName()))
         {
         if(target->GetMakefile() != root->GetMakefile())
           {