summaryrefslogtreecommitdiffstats
path: root/contrib/libottery
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-28 21:39:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-28 21:39:38 +0000
commitbebc8737c80b00ba41221e9380b3eb35070ed1b4 (patch)
treee69053025e3f6447afd350c109ca38b33ba12995 /contrib/libottery
parent3dbb1735156d3ccbdd51a5c91604b952dc650103 (diff)
downloadrspamd-bebc8737c80b00ba41221e9380b3eb35070ed1b4.tar.gz
rspamd-bebc8737c80b00ba41221e9380b3eb35070ed1b4.zip
Use more targeted compile flags setup.
Diffstat (limited to 'contrib/libottery')
-rw-r--r--contrib/libottery/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libottery/CMakeLists.txt b/contrib/libottery/CMakeLists.txt
index 0483c49f3..a2b3d8c0a 100644
--- a/contrib/libottery/CMakeLists.txt
+++ b/contrib/libottery/CMakeLists.txt
@@ -3,7 +3,7 @@ SET(OTTERYSRC chacha_merged.c
ottery_cpuinfo.c
ottery_entropy.c
ottery_global.c)
+ADD_LIBRARY(ottery STATIC ${OTTERYSRC})
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
-endif ()
-ADD_LIBRARY(ottery STATIC ${OTTERYSRC}) \ No newline at end of file
+ set_target_properties(ottery PROPERTIES COMPILER_FLAGS "-O3")
+endif () \ No newline at end of file