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

ENH: fix for crash from main tree

parent 6f65bbca
...@@ -422,15 +422,18 @@ void cmLocalVisualStudio6Generator ...@@ -422,15 +422,18 @@ void cmLocalVisualStudio6Generator
} }
const char* lang = this->GetSourceFileLanguage(*(*sf)); const char* lang = this->GetSourceFileLanguage(*(*sf));
if(lang && strcmp(lang, "CXX") == 0) if(lang)
{ {
// force a C++ file type if(strcmp(lang, "CXX") == 0)
compileFlags += " /TP "; {
} // force a C++ file type
else if(lang && strcmp(lang, "C") == 0) compileFlags += " /TP ";
{ }
// force to c file type else if(strcmp(lang, "C") == 0)
compileFlags += " /TC "; {
// force to c file type
compileFlags += " /TC ";
}
} }
// Check for extra object-file dependencies. // Check for extra object-file dependencies.
......
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