Browse Source

VS: Generate Windows Phone and Windows Store projects as Unicode

Gilles Khouzam 11 years ago
parent
commit
ee48f4c7ae
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/cmVisualStudio10TargetGenerator.cxx

+ 2 - 0
Source/cmVisualStudio10TargetGenerator.cxx

@@ -592,6 +592,8 @@ void cmVisualStudio10TargetGenerator
   if((this->Target->GetType() <= cmTarget::OBJECT_LIBRARY &&
       this->ClOptions[config]->UsingUnicode()) ||
      this->Target->GetPropertyAsBool("VS_WINRT_COMPONENT") ||
+     this->GlobalGenerator->TargetsWindowsPhone() ||
+     this->GlobalGenerator->TargetsWindowsStore() ||
      this->Target->GetPropertyAsBool("VS_WINRT_EXTENSIONS"))
     {
     this->WriteString("<CharacterSet>Unicode</CharacterSet>\n", 2);