diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-15 12:38:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-15 12:38:41 +0100 |
commit | 572f8723c85c2b5100fc76269f8b0f7ecb80c399 (patch) | |
tree | 36098d1ca96f351accb1793ccaf617780afaa5ed /contrib/libottery/CMakeLists.txt | |
parent | b8bc9298b16c3b73aead0b15fa60cf061168a8a2 (diff) | |
download | rspamd-572f8723c85c2b5100fc76269f8b0f7ecb80c399.tar.gz rspamd-572f8723c85c2b5100fc76269f8b0f7ecb80c399.zip |
Use cryptobox chacha for libottery.
Diffstat (limited to 'contrib/libottery/CMakeLists.txt')
-rw-r--r-- | contrib/libottery/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/libottery/CMakeLists.txt b/contrib/libottery/CMakeLists.txt index a2b3d8c0a..3ea5658f3 100644 --- a/contrib/libottery/CMakeLists.txt +++ b/contrib/libottery/CMakeLists.txt @@ -2,8 +2,11 @@ SET(OTTERYSRC chacha_merged.c ottery.c ottery_cpuinfo.c ottery_entropy.c - ottery_global.c) + ottery_global.c chacha_cryptobox.c) ADD_LIBRARY(ottery STATIC ${OTTERYSRC}) + +SET(OTTERY_CFLAGS "-DBUILD_RSPAMD") if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") - set_target_properties(ottery PROPERTIES COMPILER_FLAGS "-O3") -endif ()
\ No newline at end of file + SET(OTTERY_CFLAGS "${OTTERY_CFLAGS} -O3") +endif () +set_target_properties(ottery PROPERTIES COMPILE_FLAGS "${OTTERY_CFLAGS}")
\ No newline at end of file |