vcpkg/ports/duilib/enable-unicode-for-vcpkg.patch
李洋阳 f6e78c3d87
[duilib] Enable unicode define (#17745)
* duilib enable unicode define

* duilib version modify git-tree

* update duilib version files

* update duilib control and version files

* modify duilib cmake tab to space

* duilib remove unnecessary space char

* duilib update version file

* Update versions/baseline.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update ports/duilib/CONTROL

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update versions/d-/duilib.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* fix duilib version file

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2021-07-26 16:42:48 -07:00

16 lines
521 B
Diff

diff --git a/DuiLib/CMakeLists.txt b/DuiLib/CMakeLists.txt
index 835d430..b178984 100644
--- a/DuiLib/CMakeLists.txt
+++ b/DuiLib/CMakeLists.txt
@@ -2,6 +2,9 @@
#Author Qi Gao(monkgau@gmail.com)
#Created: 2012/09/16
+#if use vcpkg to build, need to add extra unicode definitions
+add_definitions(-DUNICODE -D_UNICODE)
+
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} Root_src)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/Control Control_src)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/Core Core_src)