blob: 7ae9ce063fc44d95ae2ddc53e6dca7a166e535d3 (
plain)
1
2
3
4
5
6
7
8
|
SET(LCTRIESRC btrie.c)
ADD_LIBRARY(lcbtrie STATIC ${LCTRIESRC})
SET(LCTRIE_CFLAGS "-DBUILD_RSPAMD")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET(LCTRIE_CFLAGS "${LCTRIE_CFLAGS} -O3")
endif ()
set_target_properties(lcbtrie PROPERTIES COMPILE_FLAGS "${LCTRIE_CFLAGS}")
|