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