From 588a803d586447582b8398a92c3d93808f80e285 Mon Sep 17 00:00:00 2001 From: "Wei-Yin Chen (陳威尹)" Date: Fri, 19 Aug 2016 15:25:54 -0700 Subject: Support Unicode build on Windows --- cmake/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/CMakeLists.txt') diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index f947b741..8c374b7e 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -159,6 +159,10 @@ else (MSVC) set(LIB_PREFIX) endif (MSVC) +if (UNICODE) + add_definitions(-DUNICODE -D_UNICODE) +endif (UNICODE) + include(libprotobuf-lite.cmake) include(libprotobuf.cmake) include(libprotoc.cmake) -- cgit v1.2.3