1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-17 07:11:52 +08:00

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

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