diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-12-21 20:59:39 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-12-21 20:59:39 (GMT) |
commit | d18c8d6ad7a9111f4fec515ae58096da744f3d61 (patch) | |
tree | 2100097ddbfaa327665404953f05316c70a0624f /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | 9f4605149072346aa59c1188d0582bc1c971fe7a (diff) | |
download | CMake-d18c8d6ad7a9111f4fec515ae58096da744f3d61.zip CMake-d18c8d6ad7a9111f4fec515ae58096da744f3d61.tar.gz CMake-d18c8d6ad7a9111f4fec515ae58096da744f3d61.tar.bz2 |
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
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index 502fefa..0ef771f 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -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" |