commit 0012f8a: [Minor] contrib/libev: avoid absolute path for header
Peter Wu
peter at lekensteyn.nl
Tue Jan 21 09:14:11 UTC 2020
Author: Peter Wu
Date: 2020-01-20 23:44:05 +0000
URL: https://github.com/rspamd/rspamd/commit/0012f8ae53c613e980bd83423501f55098c9cc23
[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(-)
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})
More information about the Commits
mailing list