# HG changeset patch
# User alfadur
# Date 1542836995 -10800
# Node ID efa901b04badbd2c4cc09d502983a9bb42864318
# Parent  47af42f7ca8bfc9bb817006229cb527ae9c2c7c0
prevent qtmain from not being linked in on windows

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