diff options
author | Duncan Bellamy <dunk@denkimushi.com> | 2021-09-27 11:16:47 +0100 |
---|---|---|
committer | Duncan Bellamy <dunk@denkimushi.com> | 2021-09-27 11:18:19 +0100 |
commit | 43b6f8aeb9d8b5bb138627eb1915f1d5e0fa87aa (patch) | |
tree | f31bf3660550a97bc04d914f88d1214df7fc1df2 /contrib/kann | |
parent | b36eaf826c1f9e587f189c5e9c58966c726a95c9 (diff) | |
download | rspamd-43b6f8aeb9d8b5bb138627eb1915f1d5e0fa87aa.tar.gz rspamd-43b6f8aeb9d8b5bb138627eb1915f1d5e0fa87aa.zip |
[Fix] fix static building
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") |