mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-22 12:41:48 +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")
|
set(ldflags ${ldflags} "-m32")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT MINGW)
|
if (MINGW)
|
||||||
|
set(ldflags ${ldflags} "-mwindows")
|
||||||
|
else()
|
||||||
set(sys_libs ${sys_libs} pthread)
|
set(sys_libs ${sys_libs} pthread)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue