summaryrefslogtreecommitdiff
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 10:57:31 +0200
committerStephen Kelly <steveire@gmail.com>2015-08-25 19:55:34 +0200
commit6ce940ac9701c93be01ed169c6bd23b22e04782f (patch)
treea772611160eeee031c2a6f25d7e4b0fae7a42736 /Source/cmCPluginAPI.cxx
parente8c0341d86e3f2b9658dfc594641f9ba1b29165b (diff)
downloadcmake-6ce940ac9701c93be01ed169c6bd23b22e04782f.tar.gz
cmMakefile: Use std::string in ProjectName API.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 591a2cd81e..7da334ef18 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -115,7 +115,9 @@ void CCONV cmAddCacheDefinition(void *arg, const char* name,
const char* CCONV cmGetProjectName(void *arg)
{
cmMakefile *mf = static_cast<cmMakefile *>(arg);
- return mf->GetProjectName();
+ static std::string name;
+ name = mf->GetProjectName();
+ return name.c_str();
}
const char* CCONV cmGetHomeDirectory(void *arg)