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

Add pthread linking when dynamic

This commit is contained in:
Mathieu Schroeter 2017-09-13 00:03:01 +02:00
parent 38838cfb3f
commit 77b42b1d37

View File

@ -40,6 +40,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND "${STATIC_BUILD}")
set (CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
endif ()
if (NOT "${STATIC_BUILD}")
set (CMAKE_EXE_LINKER_FLAGS "-lpthread")
endif ()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3")
endif ()