mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmMakefile: Use std::string in ProjectName API.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user