diff options
Diffstat (limited to 'contrib/kann')
-rw-r--r-- | contrib/kann/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/kann/CMakeLists.txt b/contrib/kann/CMakeLists.txt index b3a1d547c..ba16d5e9f 100644 --- a/contrib/kann/CMakeLists.txt +++ b/contrib/kann/CMakeLists.txt @@ -1,6 +1,10 @@ SET(LIBKANNSRC kautodiff.c kann.c) -ADD_LIBRARY(rspamd-kann SHARED ${LIBKANNSRC}) +IF(ENABLE_STATIC MATCHES "ON") + ADD_LIBRARY(rspamd-kann STATIC ${LIBKANNSRC}) +ELSE() + ADD_LIBRARY(rspamd-kann SHARED ${LIBKANNSRC}) +ENDIF() IF(WITH_BLAS) MESSAGE(STATUS "Use openblas to accelerate kann") |