diff options
author | Aaron C. Meadows <corwin@shadowguarddev.com> | 2012-02-16 21:27:05 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-02-17 16:30:23 (GMT) |
commit | ba89e92ba622ed821a6adf31e8a6633d574ff656 (patch) | |
tree | 5821617cc9832315cd7c58e8082259e7a07cbd8a /Source/cmLocalVisualStudio7Generator.cxx | |
parent | e2042b68d36e0881bfc00f926a275dda3d6cbc9d (diff) | |
download | CMake-ba89e92ba622ed821a6adf31e8a6633d574ff656.zip CMake-ba89e92ba622ed821a6adf31e8a6633d574ff656.tar.gz CMake-ba89e92ba622ed821a6adf31e8a6633d574ff656.tar.bz2 |
Visual Studio: Allow setting Single Byte Character Set (#12189)
For Visual Studio using the Preprocessor Define _SBCS. This behavior
is similar to the way that _UNICODE and _MBCS work already.
Added tests to confirm this behavior.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 11a0387..a23d6a1 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -774,6 +774,10 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout, { fout << "\t\t\tCharacterSet=\"1\">\n"; } + else if(targetOptions.UsingSBCS()) + { + fout << "\t\t\tCharacterSet=\"0\">\n"; + } else { fout << "\t\t\tCharacterSet=\"2\">\n"; |