diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-10-16 14:32:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-10-16 14:32:47 (GMT) |
commit | 4d2ca08bc7a91fcc207ec481323796acdf68eec6 (patch) | |
tree | 7bb25d6dee9be5caf919e84dbbb4f20392984bb2 /Source | |
parent | 073a5b69b72ee04fab9fa3253c113f9531798c66 (diff) | |
download | CMake-4d2ca08bc7a91fcc207ec481323796acdf68eec6.zip CMake-4d2ca08bc7a91fcc207ec481323796acdf68eec6.tar.gz CMake-4d2ca08bc7a91fcc207ec481323796acdf68eec6.tar.bz2 |
ENH: allow UNICODE to be specifed in the cxx flags and if not default to MBCS
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 3168f81..4d56017 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -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 |