ENH: allow UNICODE to be specifed in the cxx flags and if not default to MBCS

This commit is contained in:
Bill Hoffman
2003-10-16 10:32:47 -04:00
parent 073a5b69b7
commit 4d2ca08bc7
5 changed files with 37 additions and 31 deletions

View File

@@ -1005,6 +1005,12 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
flags = " ";
flags = m_Makefile->GetDefinition("CMAKE_C_FLAGS");
}
// if unicode is not found, then add -D_MBCS
if(flags.find("D_UNICODE") == flags.npos)
{
flags += " /D \"_MBCS\"";
}
// The template files have CXX FLAGS in them, that need to be replaced.
// There are not separate CXX and C template files, so we use the same
// variable names. The previous code sets up flags* variables to contain