aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/linenoise/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-08 20:22:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-08 20:22:38 +0100
commit917e1ca945041431f331a111b9996068c375b3f7 (patch)
tree778be3ffb3b1be1208df285393b645fdc2723281 /contrib/linenoise/CMakeLists.txt
parent050df245425cc369f73f69182393a57a213d95d3 (diff)
downloadrspamd-917e1ca945041431f331a111b9996068c375b3f7.tar.gz
rspamd-917e1ca945041431f331a111b9996068c375b3f7.zip
[Rework] Import linenoise for line editing
Diffstat (limited to 'contrib/linenoise/CMakeLists.txt')
-rw-r--r--contrib/linenoise/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/linenoise/CMakeLists.txt b/contrib/linenoise/CMakeLists.txt
new file mode 100644
index 000000000..b83d40f2a
--- /dev/null
+++ b/contrib/linenoise/CMakeLists.txt
@@ -0,0 +1,8 @@
+SET(LINENOISESRC linenoise.c)
+
+ADD_LIBRARY(rspamd-linenoise STATIC ${LINENOISESRC})
+SET_TARGET_PROPERTIES(rspamd-linenoise PROPERTIES VERSION ${RSPAMD_VERSION})
+
+if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
+ SET_TARGET_PROPERTIES(rspamd-linenoise PROPERTIES COMPILE_FLAGS "-O3")
+endif ()