aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/http-parser
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 12:38:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 12:38:41 +0100
commit572f8723c85c2b5100fc76269f8b0f7ecb80c399 (patch)
tree36098d1ca96f351accb1793ccaf617780afaa5ed /contrib/http-parser
parentb8bc9298b16c3b73aead0b15fa60cf061168a8a2 (diff)
downloadrspamd-572f8723c85c2b5100fc76269f8b0f7ecb80c399.tar.gz
rspamd-572f8723c85c2b5100fc76269f8b0f7ecb80c399.zip
Use cryptobox chacha for libottery.
Diffstat (limited to 'contrib/http-parser')
-rw-r--r--contrib/http-parser/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/http-parser/CMakeLists.txt b/contrib/http-parser/CMakeLists.txt
index ac870d9c4..d54646e55 100644
--- a/contrib/http-parser/CMakeLists.txt
+++ b/contrib/http-parser/CMakeLists.txt
@@ -1,9 +1,10 @@
SET(HTTPSRC http_parser.c)
+SET(HTTP_COMPILE_FLAGS "-DRSPAMD_LIB")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
+ set(HTTP_COMPILE_FLAGS "${HTTP_COMPILE_FLAGS} -O3")
endif ()
ADD_LIBRARY(rspamd-http-parser STATIC ${HTTPSRC})
SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES VERSION ${RSPAMD_VERSION})
-SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") \ No newline at end of file
+SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES COMPILE_FLAGS "${HTTP_COMPILE_FLAGS}") \ No newline at end of file