Browse Source

Xcode: Clarify name of legacy run script build phase helper

Brad King 5 years ago
parent
commit
0d03717996
2 changed files with 8 additions and 8 deletions
  1. 5 5
      Source/cmGlobalXCodeGenerator.cxx
  2. 3 3
      Source/cmGlobalXCodeGenerator.h

+ 5 - 5
Source/cmGlobalXCodeGenerator.cxx

@@ -1545,7 +1545,7 @@ bool cmGlobalXCodeGenerator::IsHeaderFile(cmSourceFile* sf)
                       sf->GetExtension());
 }
 
-cmXCodeObject* cmGlobalXCodeGenerator::CreateBuildPhase(
+cmXCodeObject* cmGlobalXCodeGenerator::CreateLegacyRunScriptBuildPhase(
   const char* name, const char* name2, cmGeneratorTarget* target,
   const std::vector<cmCustomCommand>& commands)
 {
@@ -1609,16 +1609,16 @@ void cmGlobalXCodeGenerator::CreateCustomCommands(
     }
   }
   // create prebuild phase
-  cmXCodeObject* cmakeRulesBuildPhase = this->CreateBuildPhase(
+  cmXCodeObject* cmakeRulesBuildPhase = this->CreateLegacyRunScriptBuildPhase(
     "CMake Rules", "cmakeRulesBuildPhase", gtgt, commands);
   // create prebuild phase
-  cmXCodeObject* preBuildPhase = this->CreateBuildPhase(
+  cmXCodeObject* preBuildPhase = this->CreateLegacyRunScriptBuildPhase(
     "CMake PreBuild Rules", "preBuildCommands", gtgt, prebuild);
   // create prelink phase
-  cmXCodeObject* preLinkPhase = this->CreateBuildPhase(
+  cmXCodeObject* preLinkPhase = this->CreateLegacyRunScriptBuildPhase(
     "CMake PreLink Rules", "preLinkCommands", gtgt, prelink);
   // create postbuild phase
-  cmXCodeObject* postBuildPhase = this->CreateBuildPhase(
+  cmXCodeObject* postBuildPhase = this->CreateLegacyRunScriptBuildPhase(
     "CMake PostBuild Rules", "postBuildPhase", gtgt, postbuild);
 
   // The order here is the order they will be built in.

+ 3 - 3
Source/cmGlobalXCodeGenerator.h

@@ -221,9 +221,9 @@ private:
   void SetGenerationRoot(cmLocalGenerator* root);
   void AddExtraTargets(cmLocalGenerator* root,
                        std::vector<cmLocalGenerator*>& gens);
-  cmXCodeObject* CreateBuildPhase(const char* name, const char* name2,
-                                  cmGeneratorTarget* target,
-                                  const std::vector<cmCustomCommand>&);
+  cmXCodeObject* CreateLegacyRunScriptBuildPhase(
+    const char* name, const char* name2, cmGeneratorTarget* target,
+    const std::vector<cmCustomCommand>&);
   void CreateReRunCMakeFile(cmLocalGenerator* root,
                             std::vector<cmLocalGenerator*> const& gens);