1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix linking with winpthread

Closes issue #24.
This commit is contained in:
Mathieu Schroeter 2018-06-07 21:56:13 +02:00
parent af14cc196f
commit 50c728c791

View File

@ -103,6 +103,7 @@ if (MINGW)
# Remove cmd window when executing planetblupi
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mwindows")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive")
endif (MINGW)
# Dependencies