瀏覽代碼

cmInstallTargetGenerator: Move internal helper to anonymous namespace

Brad King 4 年之前
父節點
當前提交
6282a8e190
共有 1 個文件被更改,包括 15 次插入13 次删除
  1. 15 13
      Source/cmInstallTargetGenerator.cxx

+ 15 - 13
Source/cmInstallTargetGenerator.cxx

@@ -25,6 +25,21 @@
 #include "cmTarget.h"
 #include "cmake.h"
 
+namespace {
+std::string computeInstallObjectDir(cmGeneratorTarget* gt,
+                                    std::string const& config)
+{
+  std::string objectDir = "objects";
+  if (!config.empty()) {
+    objectDir += "-";
+    objectDir += config;
+  }
+  objectDir += "/";
+  objectDir += gt->GetName();
+  return objectDir;
+}
+}
+
 cmInstallTargetGenerator::cmInstallTargetGenerator(
   std::string targetName, std::string const& dest, bool implib,
   std::string file_permissions, std::vector<std::string> const& configurations,
@@ -332,19 +347,6 @@ void cmInstallTargetGenerator::GenerateScriptForConfig(
                  &cmInstallTargetGenerator::PostReplacementTweaks);
 }
 
-static std::string computeInstallObjectDir(cmGeneratorTarget* gt,
-                                           std::string const& config)
-{
-  std::string objectDir = "objects";
-  if (!config.empty()) {
-    objectDir += "-";
-    objectDir += config;
-  }
-  objectDir += "/";
-  objectDir += gt->GetName();
-  return objectDir;
-}
-
 void cmInstallTargetGenerator::GenerateScriptForConfigObjectLibrary(
   std::ostream& os, const std::string& config, Indent indent)
 {