From 82c2e609a95d81f8bc18a9595ab96d3200b20d58 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 19 Jul 2019 16:28:15 +0100 Subject: [PATCH] [Minor] Fix libutil detection on BSD systems --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5