浏览代码

cmGlobalXCodeGenerator: Remove dead buildsystem version check

In commit 8d5f4c4db9 (Xcode: Switch to the "new build system" for Xcode
12 and above, 2020-09-14, v3.19.0-rc1~143^2~7) we accidentally added
code in an `else` block that under the opposite condition by which
the block can be entered.  Remove it.

Fixes: #22681
Brad King 4 年之前
父节点
当前提交
b8a2ce0484
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Source/cmGlobalXCodeGenerator.cxx

+ 0 - 3
Source/cmGlobalXCodeGenerator.cxx

@@ -1756,9 +1756,6 @@ void cmGlobalXCodeGenerator::CreateCustomCommands(
       if (sourceFile->GetCustomCommand() &&
       if (sourceFile->GetCustomCommand() &&
           visited.insert(sourceFile).second) {
           visited.insert(sourceFile).second) {
         commands.push_back(*sourceFile->GetCustomCommand());
         commands.push_back(*sourceFile->GetCustomCommand());
-        if (this->XcodeBuildSystem >= BuildSystem::Twelve) {
-          this->CustomCommandRoots[sourceFile].insert(gtgt);
-        }
       }
       }
     }
     }
     // create custom commands phase
     // create custom commands phase