From 6fcef52b59aea66ea96b3fcd6fe1c3af9ba9b7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Tue, 29 Oct 2024 16:04:28 +0100 Subject: [PATCH] Force enable AVX --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab238e7..2ef1e78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,6 +426,12 @@ if(target MATCHES "x64") HAVE_AVX512FINTRIN_H # AVX512 ) + target_compile_options( + sodium + PRIVATE + -mavx + ) + if(NOT target MATCHES "win32") target_compile_definitions( sodium