summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-28 10:14:09 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-28 10:14:09 +0200
commit4ddff15710c9814c1fa6875570a9a18e22943605 (patch)
treeb293d16f89898708337423aaf8b6f2370c025504 /SetFlags.cmake
parentMerge pull request #2504 from SafwatHalaby/revert (diff)
parentAdded the _UNICODE flag on Windows (diff)
downloadcuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar
cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.gz
cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.bz2
cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.lz
cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.xz
cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.zst
cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 076fba1f7..b4c7365fe 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -62,6 +62,9 @@ macro(set_flags)
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /LTCG")
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} /LTCG")
+
+ # Make build use Unicode:
+ add_definitions(-DUNICODE -D_UNICODE)
elseif(APPLE)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")