瀏覽代碼

Set MSVC projects to default to Unicode

MBCS is deprecated and shouldn't be used in new projects
Richard 6 年之前
父節點
當前提交
fe6b316695
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -133,6 +133,8 @@ IF(MSVC)
     "Install MSVC debug files."
     ON
   )
+  # Multibyte character set is deprecated, but default
+  ADD_DEFINITIONS( -DUNICODE -D_UNICODE )
 ENDIF(MSVC)
 
 IF (BUILD_FRAMEWORK)