aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lc-btrie/CMakeLists.txt
blob: b520bda862540edc7028e6806e1fb5cf80c1b1e9 (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} -O3")
endif ()
ENDIF()

set_target_properties(lcbtrie PROPERTIES COMPILE_FLAGS "${LCTRIE_CFLAGS}")