summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-06 22:19:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-08 22:00:18 (GMT)
commitc8187f414bcc4668940c2e0fe40d361389efdbe5 (patch)
tree94e64ae3c313e2c5086d9bc03e237d20687d11f5 /Source/cmCPluginAPI.cxx
parent8c6e6dd3cef0befcd9a7f4c410a49a5afddd8afb (diff)
downloadCMake-c8187f414bcc4668940c2e0fe40d361389efdbe5.zip
CMake-c8187f414bcc4668940c2e0fe40d361389efdbe5.tar.gz
CMake-c8187f414bcc4668940c2e0fe40d361389efdbe5.tar.bz2
cmCPluginAPI: Inline code to get project name.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 7da334e..e3efcdd 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -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();
}