ENH: fix crash

This commit is contained in:
Bill Hoffman 2007-02-20 10:52:06 -05:00
parent ba66b8d50b
commit 323860cbdf

View File

@ -422,7 +422,9 @@ void cmLocalVisualStudio6Generator
} }
const char* lang = this->GetSourceFileLanguage(*(*sf)); const char* lang = this->GetSourceFileLanguage(*(*sf));
if(lang && strcmp(lang, "CXX") == 0) if(lang)
{
if(strcmp(lang, "CXX") == 0)
{ {
// force a C++ file type // force a C++ file type
compileFlags += " /TP "; compileFlags += " /TP ";
@ -432,6 +434,7 @@ void cmLocalVisualStudio6Generator
// force to c file type // force to c file type
compileFlags += " /TC "; compileFlags += " /TC ";
} }
}
// Check for extra object-file dependencies. // Check for extra object-file dependencies.
const char* dependsValue = (*sf)->GetProperty("OBJECT_DEPENDS"); const char* dependsValue = (*sf)->GetProperty("OBJECT_DEPENDS");