Explorar o código

cmCPluginAPI: Inline code to get project name.

Stephen Kelly %!s(int64=10) %!d(string=hai) anos
pai
achega
c8187f414b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 }