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

Revert "Do not deploy winpthread anymore"

This reverts commit 27b8a5d031df4ed9e743133e37150fb4fd343539.
This commit is contained in:
Mathieu Schroeter 2018-06-08 07:47:35 +02:00
parent 9c4b94baf8
commit ce411bfd88

View File

@ -283,6 +283,14 @@ if (NOT USE_APPIMAGE)
)
endif ()
# Copy libwinpthread-1.dll which seems not be linkable statically
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
execute_process (COMMAND cygpath.exe --windows $ENV{MINGW_PREFIX} OUTPUT_VARIABLE MINGW_PATH)
string (REGEX REPLACE "[ \t\n\r]+$" "" MINGW_PATH "${MINGW_PATH}")
string (REGEX REPLACE "[\\]" "\\\\\\\\" MINGW_PATH "${MINGW_PATH}")
install (FILES "${MINGW_PATH}\\\\bin\\\\libwinpthread-1.dll" DESTINATION bin)
endif ()
#########
## Deploy
#########