Remove console window in non-debug mingw build

This commit is contained in:
Benau 2019-06-29 14:08:28 +08:00
parent a37b300530
commit 29d1dcd196

View File

@ -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/)