diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-08-06 19:35:52 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-08-06 19:35:52 (GMT) |
commit | 138c8a0dab92dba399239e9f3f0c461016012780 (patch) | |
tree | 4b39b62009dfb562bf90a56a1e8dbe200ed6c7f5 /Source | |
parent | b853e9c19fa8154884d4c6e1f7818b79e6c6bad2 (diff) | |
download | CMake-138c8a0dab92dba399239e9f3f0c461016012780.zip CMake-138c8a0dab92dba399239e9f3f0c461016012780.tar.gz CMake-138c8a0dab92dba399239e9f3f0c461016012780.tar.bz2 |
BUG: don't crash in the generator is EXECUTABLE_OUTPUT_PATH or
LIBRARY_OUTPUT_PATH are empty
Alex
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index 8572c61..d04ee73 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -351,7 +351,7 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile() } } // for EXECUTABLE_OUTPUT_PATH when not in binary dir - std::string outputPath = mf->GetDefinition("EXECUTABLE_OUTPUT_PATH"); + std::string outputPath = mf->GetSafeDefinition("EXECUTABLE_OUTPUT_PATH"); if (!outputPath.empty() && !cmSystemTools::IsSubDirectory( outputPath.c_str(), this->HomeOutputDirectory.c_str())) { @@ -368,9 +368,9 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile() this->OutLinkedResources.push_back(name); } // for LIBRARY_OUTPUT_PATH when not in binary dir - if (outputPath != mf->GetDefinition("LIBRARY_OUTPUT_PATH")) + if (outputPath != mf->GetSafeDefinition("LIBRARY_OUTPUT_PATH")) { - outputPath = mf->GetDefinition("LIBRARY_OUTPUT_PATH"); + outputPath = mf->GetSafeDefinition("LIBRARY_OUTPUT_PATH"); if (!outputPath.empty() && !cmSystemTools::IsSubDirectory( outputPath.c_str(), this->HomeOutputDirectory.c_str())) { |