From bfdac111fa8dbc09adc7f2d0d071a6350be945a8 Mon Sep 17 00:00:00 2001 From: Sasha Zezulinsky Date: Sun, 13 Feb 2022 20:22:09 +0100 Subject: [PATCH] cmake changes (#7) --- CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2238bb..a5e5484 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,14 +128,14 @@ if(ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "a else() # default build has hardware AES enabled (software AES can be selected at runtime) add_flag("-maes") - #check_c_compiler_flag(-mssse3 HAVE_SSSE3) - #if(HAVE_SSSE3) - # set_source_files_properties(src/argon2_ssse3.c COMPILE_FLAGS -mssse3) - #endif() - #check_c_compiler_flag(-mavx2 HAVE_AVX2) - #if(HAVE_AVX2) - # set_source_files_properties(src/argon2_avx2.c COMPILE_FLAGS -mavx2) - #endif() + check_c_compiler_flag(-mssse3 HAVE_SSSE3) + if(HAVE_SSSE3) + set_source_files_properties(src/argon2_ssse3.c COMPILE_FLAGS -mssse3) + endif() + check_c_compiler_flag(-mavx2 HAVE_AVX2) + if(HAVE_AVX2) + set_source_files_properties(src/argon2_avx2.c COMPILE_FLAGS -mavx2) + endif() endif() endif() endif()