mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
cmCPluginAPI: Inline code to get project name.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user