소스 검색

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();
 }