瀏覽代碼

cmCPluginAPI: Inline code to get project name.

Stephen Kelly 10 年之前
父節點
當前提交
c8187f414b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmCPluginAPI.cxx

+ 1 - 1
Source/cmCPluginAPI.cxx

@@ -116,7 +116,7 @@ const char* CCONV cmGetProjectName(void *arg)
 {
   cmMakefile *mf = static_cast<cmMakefile *>(arg);
   static std::string name;
-  name = mf->GetProjectName();
+  name = mf->GetStateSnapshot().GetProjectName();
   return name.c_str();
 }