blob: 4b1a757736b9372abaae7ddedacd80d799646170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
SET(AHOCORASICSRC acism_create.c
acism.c)
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
endif ()
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()
|