瀏覽代碼

cmMakefile: Move method out of line.

Stephen Kelly 10 年之前
父節點
當前提交
34b902a5a6
共有 2 個文件被更改,包括 6 次插入4 次删除
  1. 5 0
      Source/cmMakefile.cxx
  2. 1 4
      Source/cmMakefile.h

+ 5 - 0
Source/cmMakefile.cxx

@@ -1906,6 +1906,11 @@ const char* cmMakefile::GetCurrentBinaryDirectory() const
   return this->StateSnapshot.GetDirectory().GetCurrentBinary();
 }
 
+void cmMakefile::AddGeneratorTarget(cmTarget* t, cmGeneratorTarget* gt)
+{
+  this->GeneratorTargets[t] = gt;
+}
+
 //----------------------------------------------------------------------------
 void cmMakefile::AddIncludeDirectories(const std::vector<std::string> &incs,
                                        bool before)

+ 1 - 4
Source/cmMakefile.h

@@ -417,10 +417,7 @@ public:
     {
       this->GeneratorTargets = targets;
     }
-  void AddGeneratorTarget(cmTarget* t, cmGeneratorTarget* gt)
-  {
-    this->GeneratorTargets[t] = gt;
-  }
+  void AddGeneratorTarget(cmTarget* t, cmGeneratorTarget* gt);
 
   cmTarget* FindTarget(const std::string& name,
                        bool excludeAliases = false) const;