From 29d1dcd19604e05596a168efcf977fbeb3cce0b2 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 29 Jun 2019 14:08:28 +0800 Subject: [PATCH] Remove console window in non-debug mingw build --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 65a53efee..833b461c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -634,6 +634,9 @@ endif() if(MINGW) target_link_libraries(supertuxkart -ldxguid -ldinput8) + if (NOT CMAKE_BUILD_TYPE MATCHES Debug) + target_link_libraries(supertuxkart -mwindows) + endif() find_library(LIBGCC NAMES "libgcc_s_dw2-1.dll" "libgcc_s_sjlj-1.dll" "libgcc_s_seh-1.dll" PATHS ${CMAKE_FIND_ROOT_PATH}) if(LIBGCC) file(COPY ${LIBGCC} DESTINATION ${CMAKE_BINARY_DIR}/bin/)