summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-11 11:52:35 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-12 11:20:23 (GMT)
commit54290adcba5fa730a4e93d3a53b5d0451c6872e6 (patch)
tree2fa80c830ebd221a50eeee2263168f798192f8a3 /Source
parent86ead0b5a32ee48907084a7cf85d00196cbf0366 (diff)
downloadCMake-54290adcba5fa730a4e93d3a53b5d0451c6872e6.zip
CMake-54290adcba5fa730a4e93d3a53b5d0451c6872e6.tar.gz
CMake-54290adcba5fa730a4e93d3a53b5d0451c6872e6.tar.bz2
VS: Fix SBCS support for object libraries
In commit 3a53005f7d (Build object library targets in VS, 2012-03-12, v2.8.8~29^2~13) we updated the condition for unicode but accidentally left out the SBCS case support for object libraries. Fixes: #19469
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index cba7bef..ee5f9b4 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1213,7 +1213,7 @@ void cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValues(
this->GeneratorTarget->GetPropertyAsBool("VS_WINRT_EXTENSIONS")) {
e1.Element("CharacterSet", "Unicode");
} else if (this->GeneratorTarget->GetType() <=
- cmStateEnums::MODULE_LIBRARY &&
+ cmStateEnums::OBJECT_LIBRARY &&
this->ClOptions[config]->UsingSBCS()) {
e1.Element("CharacterSet", "NotSet");
} else {