aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-10 11:24:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-10 11:24:53 +0000
commit864f980038500399b4f15bf9b60eea1ebba845e4 (patch)
tree28771971eb6b1e3ce7727d2ee6774e0a7e5420a4
parent02d74cf4194cfeea21d012ba92ceffcf1aae35de (diff)
downloadrspamd-864f980038500399b4f15bf9b60eea1ebba845e4.tar.gz
rspamd-864f980038500399b4f15bf9b60eea1ebba845e4.zip
Fix pthread linkage
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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")