Commit 8de9e2ee authored by Dominik Charousset's avatar Dominik Charousset

Make sure to add -pthread to LDFLAGS if required

parent 8151d11d
...@@ -338,6 +338,7 @@ endif() ...@@ -338,6 +338,7 @@ endif()
# -pthread is ignored on MacOSX but required on other platforms # -pthread is ignored on MacOSX but required on other platforms
if(NOT APPLE AND NOT WIN32) if(NOT APPLE AND NOT WIN32)
add_compile_options(-pthread) add_compile_options(-pthread)
list(APPEND CAF_EXTRA_LDFLAGS "-pthread")
endif() endif()
# -fPIC generates warnings on MinGW and Cygwin plus extra setup steps needed on MinGW # -fPIC generates warnings on MinGW and Cygwin plus extra setup steps needed on MinGW
if(MINGW) if(MINGW)
...@@ -364,11 +365,6 @@ if(CAF_IOS_DEPLOYMENT_TARGET) ...@@ -364,11 +365,6 @@ if(CAF_IOS_DEPLOYMENT_TARGET)
endif() endif()
endif() endif()
# needed by subprojects
if (DEFINED CMAKE_LD_LIBS)
list(APPEND ${CMAKE_LD_LIBS})
endif()
################################################################################ ################################################################################
# setup logging # # setup logging #
################################################################################ ################################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment