From: Vsevolod Stakhov Date: Thu, 10 Dec 2015 11:24:53 +0000 (+0000) Subject: Fix pthread linkage X-Git-Tag: 1.1.0~350 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=864f980038500399b4f15bf9b60eea1ebba845e4;p=rspamd.git Fix pthread linkage --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2088e2776..f0e5e3e68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -895,7 +895,7 @@ TRY_RUN(_CAN_RUN _CAN_COMPILE CMAKE_FLAGS CMAKE_C_FLAGS="-pthread") IF(_CAN_RUN EQUAL 1) SET(HAVE_PTHREAD_PROCESS_SHARED 1 CACHE INTERNAL "") - SET(RSPAMD_REQUIRED_LIBRARIES "${RSPAMD_REQUIRED_LIBRARIES} -lpthread") + LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lpthread") ENDIF(_CAN_RUN EQUAL 1) IF(HAVE_PTHREAD_PROCESS_SHARED) MESSAGE(STATUS "pthread_mutexattr_setpshared is supported")