VS6: Avoid _MBCS define when _SBCS is defined (#12189)

Should fix the failing SBCS test on the VS6 dashboard.
This commit is contained in:
David Cole 2012-02-21 11:29:06 -05:00
parent ba89e92ba6
commit df19b9cadb
1 changed files with 5 additions and 3 deletions

View File

@ -1606,10 +1606,12 @@ void cmLocalVisualStudio6Generator
flagsDebugRel += " -DCMAKE_INTDIR=\\\"RelWithDebInfo\\\" ";
}
// if unicode is not found, then add -D_MBCS
// if _UNICODE and _SBCS are not found, then add -D_MBCS
std::string defs = this->Makefile->GetDefineFlags();
if(flags.find("D_UNICODE") == flags.npos &&
defs.find("D_UNICODE") == flags.npos)
defs.find("D_UNICODE") == flags.npos &&
flags.find("D_SBCS") == flags.npos &&
defs.find("D_SBCS") == flags.npos)
{
flags += " /D \"_MBCS\"";
}