diff options
author | Peter Wu <peter@lekensteyn.nl> | 2020-01-20 23:44:05 +0000 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2020-01-20 23:44:05 +0000 |
commit | 0012f8ae53c613e980bd83423501f55098c9cc23 (patch) | |
tree | 2b29bd4b36393067272ed923968321673feb64e5 | |
parent | a91a3bc6e0a94ff8ba807590983c4af789aa7022 (diff) | |
download | rspamd-0012f8ae53c613e980bd83423501f55098c9cc23.tar.gz rspamd-0012f8ae53c613e980bd83423501f55098c9cc23.zip |
[Minor] contrib/libev: avoid absolute path for header
* Avoid including the absolute header path to permit reproducible builds
invariant of the build direvtory.
-rw-r--r-- | contrib/libev/CMakeLists.txt | 5 |
1 files 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}) |