aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/replxx
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2021-09-27 11:16:47 +0100
committerDuncan Bellamy <dunk@denkimushi.com>2021-09-27 11:18:19 +0100
commit43b6f8aeb9d8b5bb138627eb1915f1d5e0fa87aa (patch)
treef31bf3660550a97bc04d914f88d1214df7fc1df2 /contrib/replxx
parentb36eaf826c1f9e587f189c5e9c58966c726a95c9 (diff)
downloadrspamd-43b6f8aeb9d8b5bb138627eb1915f1d5e0fa87aa.tar.gz
rspamd-43b6f8aeb9d8b5bb138627eb1915f1d5e0fa87aa.zip
[Fix] fix static building
Diffstat (limited to 'contrib/replxx')
-rw-r--r--contrib/replxx/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/replxx/CMakeLists.txt b/contrib/replxx/CMakeLists.txt
index da6e8d865..f48a0688d 100644
--- a/contrib/replxx/CMakeLists.txt
+++ b/contrib/replxx/CMakeLists.txt
@@ -64,7 +64,11 @@ set(
)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
-add_library(rspamd-replxx SHARED ${REPLXX_SOURCES})
+if(ENABLE_STATIC MATCHES "ON")
+ add_library(rspamd-replxx STATIC ${REPLXX_SOURCES})
+else()
+ add_library(rspamd-replxx SHARED ${REPLXX_SOURCES})
+endif()
target_include_directories(
rspamd-replxx