aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libottery
diff options
context:
space:
mode:
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