cmake: add underscore in SSE4_1 and SSE4_2 options
This commit is contained in:
committed by
Ozkan Sezer
parent
8eb673d43d
commit
0bd5ce13db
@@ -373,8 +373,8 @@ dep_option(SDL_AVX512 "Use AVX512 assembly routines" ON "SDL_ASSEMB
|
||||
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)
|
||||
dep_option(SDL_SSE41 "Use SSE4.1 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
|
||||
dep_option(SDL_SSE42 "Use SSE4.2 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
|
||||
dep_option(SDL_SSE4_1 "Use SSE4.1 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
|
||||
dep_option(SDL_SSE4_2 "Use SSE4.2 assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
|
||||
dep_option(SDL_MMX "Use MMX assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_X86 OR SDL_CPU_X64" OFF)
|
||||
dep_option(SDL_ALTIVEC "Use Altivec assembly routines" ON "SDL_ASSEMBLY;SDL_CPU_POWERPC32 OR SDL_CPU_POWERPC64" OFF)
|
||||
dep_option(SDL_ARMSIMD "Use SIMD assembly blitters on ARM" OFF "SDL_ASSEMBLY;SDL_CPU_ARM32" OFF)
|
||||
@@ -798,7 +798,7 @@ if(SDL_ASSEMBLY)
|
||||
set(HAVE_SSE3 TRUE)
|
||||
endif()
|
||||
endif()
|
||||
if(SDL_SSE41)
|
||||
if(SDL_SSE4_1)
|
||||
cmake_push_check_state()
|
||||
if(USE_GCC OR USE_CLANG)
|
||||
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -msse4.1")
|
||||
@@ -813,13 +813,13 @@ if(SDL_ASSEMBLY)
|
||||
int main(int argc, char **argv) {
|
||||
ints_mul((int*)0, (int*)0, (int*)0, 0);
|
||||
return 0;
|
||||
}" COMPILER_SUPPORTS_SSE41)
|
||||
}" COMPILER_SUPPORTS_SSE4_1)
|
||||
cmake_pop_check_state()
|
||||
if(COMPILER_SUPPORTS_SSE41)
|
||||
set(HAVE_SSE41 TRUE)
|
||||
if(COMPILER_SUPPORTS_SSE4_1)
|
||||
set(HAVE_SSE4_1 TRUE)
|
||||
endif()
|
||||
endif()
|
||||
if(SDL_SSE42)
|
||||
if(SDL_SSE4_2)
|
||||
cmake_push_check_state()
|
||||
if(USE_GCC OR USE_CLANG)
|
||||
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -msse4.2")
|
||||
@@ -836,10 +836,10 @@ if(SDL_ASSEMBLY)
|
||||
int main(int argc, char **argv) {
|
||||
calc_crc32c(\"SDL_SSE4\",8);
|
||||
return 0;
|
||||
}" COMPILER_SUPPORTS_SSE42)
|
||||
}" COMPILER_SUPPORTS_SSE4_2)
|
||||
cmake_pop_check_state()
|
||||
if(COMPILER_SUPPORTS_SSE42)
|
||||
set(HAVE_SSE42 TRUE)
|
||||
if(COMPILER_SUPPORTS_SSE4_2)
|
||||
set(HAVE_SSE4_2 TRUE)
|
||||
endif()
|
||||
endif()
|
||||
if(SDL_AVX)
|
||||
@@ -1044,12 +1044,12 @@ if(NOT HAVE_SSE3)
|
||||
set(SDL_DISABLE_SSE3 1)
|
||||
endif()
|
||||
|
||||
if(NOT HAVE_SSE41)
|
||||
set(SDL_DISABLE_SSE41 1)
|
||||
if(NOT HAVE_SSE4_1)
|
||||
set(SDL_DISABLE_SSE4_1 1)
|
||||
endif()
|
||||
|
||||
if(NOT HAVE_SSE42)
|
||||
set(SDL_DISABLE_SSE42 1)
|
||||
if(NOT HAVE_SSE4_2)
|
||||
set(SDL_DISABLE_SSE4_2 1)
|
||||
endif()
|
||||
|
||||
if(NOT HAVE_AVX)
|
||||
|
||||
Reference in New Issue
Block a user