diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-10 11:24:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-10 11:24:53 +0000 |
commit | 864f980038500399b4f15bf9b60eea1ebba845e4 (patch) | |
tree | 28771971eb6b1e3ce7727d2ee6774e0a7e5420a4 | |
parent | 02d74cf4194cfeea21d012ba92ceffcf1aae35de (diff) | |
download | rspamd-864f980038500399b4f15bf9b60eea1ebba845e4.tar.gz rspamd-864f980038500399b4f15bf9b60eea1ebba845e4.zip |
Fix pthread linkage
-rw-r--r-- | CMakeLists.txt | 2 |
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") |