prevent qtmain from not being linked in on windows
authoralfadur
Thu, 22 Nov 2018 00:49:55 +0300
changeset 14291 efa901b04bad
parent 14290 47af42f7ca8b
child 14292 1aac8a62be6f
prevent qtmain from not being linked in on windows
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})