From 0012f8ae53c613e980bd83423501f55098c9cc23 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 20 Jan 2020 23:44:05 +0000 Subject: [Minor] contrib/libev: avoid absolute path for header * Avoid including the absolute header path to permit reproducible builds invariant of the build direvtory. --- contrib/libev/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/libev') diff --git a/contrib/libev/CMakeLists.txt b/contrib/libev/CMakeLists.txt index db380db95..591166a96 100644 --- a/contrib/libev/CMakeLists.txt +++ b/contrib/libev/CMakeLists.txt @@ -50,7 +50,8 @@ CHECK_LIBRARY_EXISTS(m ceil "" HAVE_LIBM) CONFIGURE_FILE(config.h.in libev-config.h) ADD_LIBRARY(rspamd-ev SHARED ${LIBEVSRC}) -ADD_DEFINITIONS("-DEV_CONFIG_H=\"${CMAKE_CURRENT_BINARY_DIR}/libev-config.h\"" +include_directories("${CMAKE_CURRENT_BINARY_DIR}") +ADD_DEFINITIONS("-DEV_CONFIG_H=\"libev-config.h\"" -DEV_MULTIPLICITY=1 -DEV_USE_FLOOR=1 -DEV_NO_THREADS=1 # We do not have threads in Rspamd! @@ -64,4 +65,4 @@ IF(ENABLE_FULL_DEBUG MATCHES "ON") ADD_DEFINITIONS(-DEV_VERIFY=3) ENDIF() -INSTALL(TARGETS rspamd-ev LIBRARY DESTINATION ${RSPAMD_LIBDIR}) \ No newline at end of file +INSTALL(TARGETS rspamd-ev LIBRARY DESTINATION ${RSPAMD_LIBDIR}) -- cgit v1.2.3