aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lc-btrie/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/lc-btrie/CMakeLists.txt')
-rw-r--r--contrib/lc-btrie/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/lc-btrie/CMakeLists.txt b/contrib/lc-btrie/CMakeLists.txt
new file mode 100644
index 000000000..7ae9ce063
--- /dev/null
+++ b/contrib/lc-btrie/CMakeLists.txt
@@ -0,0 +1,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}") \ No newline at end of file