cmMakefile: Use std::string in ProjectName API.

This commit is contained in:
Stephen Kelly
2015-08-02 10:57:31 +02:00
parent e8c0341d86
commit 6ce940ac97
4 changed files with 8 additions and 6 deletions

View File

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