From 30ad6c6379d7b43311a7f80d6f501ec33b2ff4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20P=C4=85czkowski?= Date: Tue, 12 May 2020 12:47:30 -0700 Subject: [PATCH] servers: fix unicode support for mingw --- server/scsynth/CMakeLists.txt | 1 + server/supernova/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/server/scsynth/CMakeLists.txt b/server/scsynth/CMakeLists.txt index 778737ae5c0..dccbe6479d9 100644 --- a/server/scsynth/CMakeLists.txt +++ b/server/scsynth/CMakeLists.txt @@ -259,6 +259,7 @@ if(APPLE) COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $/../Resources) elseif(WIN32) if(NOT MSVC) + target_link_libraries(scsynth "-municode") set_target_properties(scsynth libscsynth PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$") endif(NOT MSVC) diff --git a/server/supernova/CMakeLists.txt b/server/supernova/CMakeLists.txt index 67acbfc44af..6405ce597bb 100644 --- a/server/supernova/CMakeLists.txt +++ b/server/supernova/CMakeLists.txt @@ -206,6 +206,7 @@ target_link_libraries(supernova libsupernova) if(WIN32) if(NOT MSVC) + target_link_libraries(supernova "-municode") set_target_properties(supernova libsupernova PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$") endif(NOT MSVC)