aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/blake2
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 10:55:28 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 10:55:28 +0000
commitdd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e (patch)
treee5483eda2482a320ad834bad246fd7e0759c308d /contrib/blake2
parenta13bc71723ef269d7dcee56416a5f42cd8ee8a72 (diff)
downloadrspamd-dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e.tar.gz
rspamd-dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e.zip
Compile external tools with optimizations.
Diffstat (limited to 'contrib/blake2')
-rw-r--r--contrib/blake2/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/blake2/CMakeLists.txt b/contrib/blake2/CMakeLists.txt
index ce173e708..58c79450b 100644
--- a/contrib/blake2/CMakeLists.txt
+++ b/contrib/blake2/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
set(BLAKE_SRC blake2b-ref.c)
-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
- set(CMAKE_C_FLAGS "-O3")
+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(blake2 STATIC "${BLAKE_SRC}")