]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] contrib/libev: avoid absolute path for header
authorPeter Wu <peter@lekensteyn.nl>
Mon, 20 Jan 2020 23:44:05 +0000 (23:44 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Mon, 20 Jan 2020 23:44:05 +0000 (23:44 +0000)
* Avoid including the absolute header path to permit reproducible builds
  invariant of the build direvtory.

contrib/libev/CMakeLists.txt

index db380db95b2a3509dbd8c4475e7622013e4cfb5c..591166a960080b47ec70dd1ea0cdbb988b5e6a3a 100644 (file)
@@ -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})