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:
@@ -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