ENH: fix crash
This commit is contained in:
parent
ba66b8d50b
commit
323860cbdf
@ -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(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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user