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/cmVisualStudio10TargetGenerator.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/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 9418761..ab74265 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -394,6 +394,11 @@ void cmVisualStudio10TargetGenerator::WriteProjectConfigurationValues() { this->WriteString("<CharacterSet>Unicode</CharacterSet>\n", 2); } + else if (this->Target->GetType() <= cmTarget::MODULE_LIBRARY && + this->ClOptions[*i]->UsingSBCS()) + { + this->WriteString("<CharacterSet>NotSet</CharacterSet>\n", 2); + } else { this->WriteString("<CharacterSet>MultiByte</CharacterSet>\n", 2); |