From dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 19 Dec 2014 10:55:28 +0000 Subject: Compile external tools with optimizations. --- contrib/libottery/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib/libottery') diff --git a/contrib/libottery/CMakeLists.txt b/contrib/libottery/CMakeLists.txt index 52667ff84..0483c49f3 100644 --- a/contrib/libottery/CMakeLists.txt +++ b/contrib/libottery/CMakeLists.txt @@ -3,5 +3,7 @@ SET(OTTERYSRC chacha_merged.c ottery_cpuinfo.c ottery_entropy.c ottery_global.c) - +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 -- cgit v1.2.3