diff --git a/CMakeLists.txt b/CMakeLists.txt index a272ea3..1a702c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,11 +111,11 @@ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") target_compile_options(FANS_FANS PUBLIC -mavx2 -mfma) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux") # Linux: Check for AVX2 support using lscpu - execute_process(COMMAND lscpu OUTPUT_VARIABLE LSCU_OUTPUT ERROR_QUIET) + execute_process(COMMAND lscpu OUTPUT_VARIABLE LSCPU_OUTPUT ERROR_QUIET) # Default to AVX; enable AVX2 if supported by hardware set(FANS_USE_AVX2 FALSE) - if (LSCU_OUTPUT MATCHES "avx2") + if (LSCPU_OUTPUT MATCHES "avx2") set(FANS_USE_AVX2 TRUE) endif()