From 6ecd7ae7a1900f57a4952f25224f92a7975c7ff6 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 9 Jun 2022 12:54:44 -0700 Subject: [PATCH] fix: add -municode for mingw as a link option --- src/MinGW.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MinGW.cmake b/src/MinGW.cmake index 09b0e6cf..3ef0358c 100644 --- a/src/MinGW.cmake +++ b/src/MinGW.cmake @@ -119,7 +119,7 @@ macro(mingw_unicode) if(${_cxx_supports_municode}) message(STATUS "Enabling Unicode for MinGW in the current project to fix undefined references to WinMain") add_compile_definitions("UNICODE" "_UNICODE") - add_compile_options("-municode") + add_link_options("-municode") endif() endif() endmacro()