diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-02 08:57:31 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-25 17:55:34 (GMT) |
commit | 6ce940ac9701c93be01ed169c6bd23b22e04782f (patch) | |
tree | a772611160eeee031c2a6f25d7e4b0fae7a42736 /Source/cmCPluginAPI.cxx | |
parent | e8c0341d86e3f2b9658dfc594641f9ba1b29165b (diff) | |
download | CMake-6ce940ac9701c93be01ed169c6bd23b22e04782f.zip CMake-6ce940ac9701c93be01ed169c6bd23b22e04782f.tar.gz CMake-6ce940ac9701c93be01ed169c6bd23b22e04782f.tar.bz2 |
cmMakefile: Use std::string in ProjectName API.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 591a2cd..7da334e 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) |