Fix crash in Eclipse generator with empty project (#11616)
If there was no language at all enabled, CMAKE_BUILD_TYPE was empty, which was not expected, and made the generator crash. Alex
This commit is contained in:
parent
9f46051490
commit
d18c8d6ad7
|
@ -201,7 +201,7 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile()
|
|||
"<projectDescription>\n"
|
||||
"\t<name>" <<
|
||||
this->GenerateProjectName(mf->GetProjectName(),
|
||||
mf->GetDefinition("CMAKE_BUILD_TYPE"),
|
||||
mf->GetSafeDefinition("CMAKE_BUILD_TYPE"),
|
||||
this->GetPathBasename(this->HomeOutputDirectory))
|
||||
<< "</name>\n"
|
||||
"\t<comment></comment>\n"
|
||||
|
|
Loading…
Reference in New Issue