blob: 3b7a1cf2464194f768637098da6a602aee07da27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
SET(LCTRIESRC btrie.c)
ADD_LIBRARY(lcbtrie STATIC ${LCTRIESRC})
SET(LCTRIE_CFLAGS "-DBUILD_RSPAMD")
IF(ENABLE_FULL_DEBUG MATCHES "OFF")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET(LCTRIE_CFLAGS "${LCTRIE_CFLAGS} -O2")
endif ()
ENDIF()
set_target_properties(lcbtrie PROPERTIES COMPILE_FLAGS "${LCTRIE_CFLAGS}")
|