mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 21:02:11 +00:00
Link MinGW binaries with -mwindows
mingw-w64 requires this when linking gui applications.
This commit is contained in:
parent
278dae9345
commit
1358d397e4
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