diff options
Diffstat (limited to 'contrib/libev/CMakeLists.txt')
-rw-r--r-- | contrib/libev/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/libev/CMakeLists.txt b/contrib/libev/CMakeLists.txt index 53ab6c362..03d9df254 100644 --- a/contrib/libev/CMakeLists.txt +++ b/contrib/libev/CMakeLists.txt @@ -58,7 +58,11 @@ CHECK_LIBRARY_EXISTS(m ceil "" HAVE_LIBM) CONFIGURE_FILE(config.h.in libev-config.h) -ADD_LIBRARY(rspamd-ev SHARED ${LIBEVSRC}) +IF(ENABLE_STATIC MATCHES "ON") + ADD_LIBRARY(rspamd-ev STATIC ${LIBEVSRC}) +ELSE() + ADD_LIBRARY(rspamd-ev SHARED ${LIBEVSRC}) +ENDIF() include_directories("${CMAKE_CURRENT_BINARY_DIR}") ADD_DEFINITIONS("-DEV_CONFIG_H=\"libev-config.h\"" -DEV_MULTIPLICITY=1 |