mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
Link MinGW binaries with -mwindows
mingw-w64 requires this when linking gui applications.
This commit is contained in:
parent
c476c0b168
commit
980937db1a
1 changed files with 3 additions and 1 deletions
|
@ -179,7 +179,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
set(ldflags ${ldflags} "-m32")
|
||||
endif()
|
||||
|
||||
if (NOT MINGW)
|
||||
if (MINGW)
|
||||
set(ldflags ${ldflags} "-mwindows")
|
||||
else()
|
||||
set(sys_libs ${sys_libs} pthread)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue