cmCPluginAPI: Inline code to get project name.

This commit is contained in:
Stephen Kelly 2015-10-07 00:19:02 +02:00
parent 8c6e6dd3ce
commit c8187f414b
1 changed files with 1 additions and 1 deletions

View File

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