summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-23 12:51:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-23 12:51:06 (GMT)
commit67ac3ea5036f946557abb5ba7fde0bee4f17ace2 (patch)
tree6084cd013c191d3d719df0574708e80e5e4b18bf /Source/cmGlobalGenerator.cxx
parent0eb9c01f148705ab27c3f45157e942b1e497cca1 (diff)
downloadCMake-67ac3ea5036f946557abb5ba7fde0bee4f17ace2.zip
CMake-67ac3ea5036f946557abb5ba7fde0bee4f17ace2.tar.gz
CMake-67ac3ea5036f946557abb5ba7fde0bee4f17ace2.tar.bz2
ENH: fix problems with .def and RC files
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 023bccc..e95bb5e 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -312,6 +312,10 @@ void cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
const char* cmGlobalGenerator::GetLanguageOutputExtensionForLanguage(const char* lang)
{
+ if(!lang)
+ {
+ return "";
+ }
if(m_LanguageToOutputExtension.count(lang) > 0)
{
return m_LanguageToOutputExtension[lang].c_str();
@@ -321,6 +325,10 @@ const char* cmGlobalGenerator::GetLanguageOutputExtensionForLanguage(const char*
const char* cmGlobalGenerator::GetLanguageOutputExtensionFromExtension(const char* ext)
{
+ if(!ext)
+ {
+ return "";
+ }
const char* lang = this->GetLanguageFromExtension(ext);
return this->GetLanguageOutputExtensionForLanguage(lang);
}