cmCPluginAPI: Inline code to get project name.
This commit is contained in:
parent
8c6e6dd3ce
commit
c8187f414b
@ -116,7 +116,7 @@ const char* CCONV cmGetProjectName(void *arg)
|
|||||||
{
|
{
|
||||||
cmMakefile *mf = static_cast<cmMakefile *>(arg);
|
cmMakefile *mf = static_cast<cmMakefile *>(arg);
|
||||||
static std::string name;
|
static std::string name;
|
||||||
name = mf->GetProjectName();
|
name = mf->GetStateSnapshot().GetProjectName();
|
||||||
return name.c_str();
|
return name.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user