mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
ENH: fix crash
This commit is contained in:
@@ -422,15 +422,18 @@ void cmLocalVisualStudio6Generator
|
||||
}
|
||||
|
||||
const char* lang = this->GetSourceFileLanguage(*(*sf));
|
||||
if(lang && strcmp(lang, "CXX") == 0)
|
||||
if(lang)
|
||||
{
|
||||
// force a C++ file type
|
||||
compileFlags += " /TP ";
|
||||
}
|
||||
else if(strcmp(lang, "C") == 0)
|
||||
{
|
||||
// force to c file type
|
||||
compileFlags += " /TC ";
|
||||
if(strcmp(lang, "CXX") == 0)
|
||||
{
|
||||
// force a C++ file type
|
||||
compileFlags += " /TP ";
|
||||
}
|
||||
else if(strcmp(lang, "C") == 0)
|
||||
{
|
||||
// force to c file type
|
||||
compileFlags += " /TC ";
|
||||
}
|
||||
}
|
||||
|
||||
// Check for extra object-file dependencies.
|
||||
|
||||
Reference in New Issue
Block a user