Update CMakeLists.txt

thanks.

Co-authored-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
zdenop 2020-07-01 08:43:55 +02:00 committed by GitHub
parent 2538989ef5
commit 511189b069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ endif(HAVE_AVX)
CHECK_CXX_COMPILER_FLAG("-mavx2" HAVE_AVX2)
if(HAVE_AVX2)
set(AVX2_COMPILE_FLAGS "-mavx2")
add_definitions("-DHAVE_AVX")
add_definitions("-DHAVE_AVX2")
endif()
CHECK_CXX_COMPILER_FLAG("-mfma" HAVE_FMA)