summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-08 20:14:03 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-08 20:14:03 (GMT)
commitf55119e63b4063daf6c8cdce5eb5415d04b0c2bd (patch)
tree5afda3c63fb305d3c646c7046f1ea2694afd9411 /Source/cmVisualStudio10TargetGenerator.cxx
parent9f6c38253a29288a7f8479d43e7c87fd3d958e79 (diff)
parentb28e7fa174798717ebf8e18b8d97755d3568b04d (diff)
downloadCMake-f55119e63b4063daf6c8cdce5eb5415d04b0c2bd.zip
CMake-f55119e63b4063daf6c8cdce5eb5415d04b0c2bd.tar.gz
CMake-f55119e63b4063daf6c8cdce5eb5415d04b0c2bd.tar.bz2
Merge topic 'fix-12189-support-SBCS-in-VS'
b28e7fa VS6: Avoid SBCS test on VS6 (#12189) df19b9c VS6: Avoid _MBCS define when _SBCS is defined (#12189) ba89e92 Visual Studio: Allow setting Single Byte Character Set (#12189)
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index f9148a1..27b83b9 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);