From 06dd4691959abe7a4f1c154f2cf0bfbdeffd5a03 Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Fri, 5 Mar 2021 17:36:20 +0100 Subject: [PATCH] Tell MSVC that main is still entry --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67173ed11..2f86af688 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1900,6 +1900,10 @@ if(CLIENT) ) target_link_libraries(${TARGET_CLIENT} ${LIBS_CLIENT}) + if(MSVC) + target_link_options(${TARGET_CLIENT} PRIVATE /ENTRY:mainCRTStartup) + endif() + target_include_directories(${TARGET_CLIENT} PRIVATE ${CURL_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS}