Remove console window in non-debug mingw build
This commit is contained in:
parent
a37b300530
commit
29d1dcd196
@ -634,6 +634,9 @@ endif()
|
|||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
target_link_libraries(supertuxkart -ldxguid -ldinput8)
|
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})
|
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)
|
if(LIBGCC)
|
||||||
file(COPY ${LIBGCC} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
|
file(COPY ${LIBGCC} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
|
||||||
|
Loading…
Reference in New Issue
Block a user