cmake: rename SDL_AVX512 -> SDL_AVX512F cmake option

This commit is contained in:
Anonymous Maarten 2023-03-25 00:18:50 +01:00 committed by Anonymous Maarten
parent 8789729b4a
commit 37c9329db2

View File

@ -372,7 +372,7 @@ option_string(SDL_ASSERTIONS "Enable internal sanity checks (auto/disabled/relea
set_option(SDL_ASSEMBLY "Enable assembly routines" ${SDL_ASSEMBLY_DEFAULT})
dep_option(SDL_AVX "Use AVX assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
dep_option(SDL_AVX2 "Use AVX2 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
dep_option(SDL_AVX512 "Use AVX512 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
dep_option(SDL_AVX512F "Use AVX512F assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
dep_option(SDL_SSE "Use SSE assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
dep_option(SDL_SSE2 "Use SSE2 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
dep_option(SDL_SSE3 "Use SSE3 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
@ -903,7 +903,7 @@ if(SDL_ASSEMBLY)
set(HAVE_AVX2 TRUE)
endif()
endif()
if(SDL_AVX512)
if(SDL_AVX512F)
cmake_push_check_state()
if(USE_GCC OR USE_CLANG OR USE_INTELCC)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -mavx512f")