浏览代码

cmMakefile: Out-of-line GetProjectName.

Stephen Kelly 10 年之前
父节点
当前提交
e8c0341d86
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 4 0
      Source/cmMakefile.cxx
  2. 1 4
      Source/cmMakefile.h

+ 4 - 0
Source/cmMakefile.cxx

@@ -2049,6 +2049,10 @@ void cmMakefile::SetProjectName(const char* p)
   this->ProjectName = p;
 }
 
+const char* cmMakefile::GetProjectName() const
+{
+  return this->ProjectName.c_str();
+}
 
 void cmMakefile::AddGlobalLinkInformation(const std::string& name,
                                           cmTarget& target)

+ 1 - 4
Source/cmMakefile.h

@@ -279,10 +279,7 @@ public:
   /**
    * Get the name of the project for this build.
    */
-  const char* GetProjectName() const
-    {
-      return this->ProjectName.c_str();
-    }
+  const char* GetProjectName() const;
 
   /** Get the configurations to be generated.  */
   std::string GetConfigurations(std::vector<std::string>& configs,