diff options
Diffstat (limited to 'contrib/aho-corasick/CMakeLists.txt')
-rw-r--r-- | contrib/aho-corasick/CMakeLists.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/aho-corasick/CMakeLists.txt b/contrib/aho-corasick/CMakeLists.txt index d185245cb..4b1a75773 100644 --- a/contrib/aho-corasick/CMakeLists.txt +++ b/contrib/aho-corasick/CMakeLists.txt @@ -3,6 +3,12 @@ SET(AHOCORASICSRC acism_create.c if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") endif () -ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC}) -INSTALL(TARGETS rspamd-actrie - LIBRARY DESTINATION ${RSPAMD_LIBDIR}) + +IF(NOT GPL_RSPAMD_BINARY) + ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC}) + + INSTALL(TARGETS rspamd-actrie + LIBRARY DESTINATION ${RSPAMD_LIBDIR}) +ELSE() + ADD_LIBRARY(rspamd-actrie STATIC ${AHOCORASICSRC}) +ENDIF() |