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()