From: Vsevolod Stakhov Date: Fri, 19 Jul 2019 15:28:15 +0000 (+0100) Subject: [Minor] Fix libutil detection on BSD systems X-Git-Tag: 2.0~537 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=82c2e609a95d81f8bc18a9595ab96d3200b20d58;p=rspamd.git [Minor] Fix libutil detection on BSD systems --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 88aea0b62..d108f51e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -506,7 +506,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "^.*BSD$|DragonFly") ROOT ${LIBUTIL_ROOT_DIR} OPTIONAL) IF(WITH_LIBUTIL) SET(HAVE_LIBUTIL_H 1) - LIST(APPEND RSPAMD_REQUIRED_LIBRARIES util) + LIST(APPEND CMAKE_REQUIRED_LIBRARIES util) CHECK_FUNCTION_EXISTS(pidfile_open HAVE_PIDFILE) CHECK_FUNCTION_EXISTS(pidfile_fileno HAVE_PIDFILE_FILENO) ENDIF()