Commit 644e4fdb authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fix for crash from main tree

parent 6f65bbca
...@@ -422,16 +422,19 @@ void cmLocalVisualStudio6Generator ...@@ -422,16 +422,19 @@ 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 ";
} }
else if(lang && strcmp(lang, "C") == 0) else if(strcmp(lang, "C") == 0)
{ {
// 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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment