Skip to content

Commit

Permalink
cmake changes (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky authored Feb 13, 2022
1 parent fe3807c commit bfdac11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bfdac11

Please sign in to comment.