diff -r 47af42f7ca8b -r efa901b04bad QTfrontend/CMakeLists.txt --- a/QTfrontend/CMakeLists.txt Wed Nov 21 22:19:58 2018 +0100 +++ b/QTfrontend/CMakeLists.txt Thu Nov 22 00:49:55 2018 +0300 @@ -217,6 +217,10 @@ list(APPEND HW_LINK_LIBS stdc++ m) endif() +if(WIN32 AND VCPKG_TOOLCHAIN) + list(APPEND HW_LINK_LIBS Qt5::WinMain) +endif() + target_link_libraries(hedgewars ${HW_LINK_LIBS})