Skip to content

Commit

Permalink
Fix mistake in FindAVX.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Laine (HE/HIM) committed Apr 15, 2023
1 parent 6885c98 commit 2757ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindAVX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ macro(check_for_avx target)
include(CheckCXXSourceRuns)
set(CMAKE_REQUIRED_FLAGS)

if (APSI_DETECT_AVX)
if(APSI_USE_AVX)
# Check AVX
if(MSVC AND MSVC_VERSION GREATER_EQUAL 1600)
set(CMAKE_REQUIRED_FLAGS "/arch:AVX")
Expand Down Expand Up @@ -37,7 +37,7 @@ macro(check_for_avx target)
HAVE_AVX_EXTENSIONS)
endif()

if (APSI_DETECT_AVX2)
if(APSI_USE_AVX2)
# Check AVX2
if(MSVC AND MSVC_VERSION GREATER_EQUAL 1800)
set(CMAKE_REQUIRED_FLAGS "/arch:AVX2")
Expand Down

0 comments on commit 2757ecb

Please sign in to comment.