Browse Source

cmMakefile: Move method out of line.

Stephen Kelly 10 years ago
parent
commit
34b902a5a6
2 changed files with 6 additions and 4 deletions
  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;