use target attributes of gcc / clang for SIMD code.
This commit is contained in:
@@ -735,7 +735,6 @@ if(SDL_ASSEMBLY)
|
||||
cmake_pop_check_state()
|
||||
if(CPU_SUPPORTS_AVX)
|
||||
set(HAVE_AVX TRUE)
|
||||
target_compile_options(sdl-build-options INTERFACE "-mavx")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -760,7 +759,6 @@ if(SDL_ASSEMBLY)
|
||||
cmake_pop_check_state()
|
||||
if(CPU_SUPPORTS_MMX)
|
||||
set(HAVE_MMX TRUE)
|
||||
target_compile_options(sdl-build-options INTERFACE "-mmmx")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -785,7 +783,6 @@ if(SDL_ASSEMBLY)
|
||||
cmake_pop_check_state()
|
||||
if(CPU_SUPPORTS_SSE)
|
||||
set(HAVE_SSE ON)
|
||||
target_compile_options(sdl-build-options INTERFACE "-msse")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -810,7 +807,6 @@ if(SDL_ASSEMBLY)
|
||||
cmake_pop_check_state()
|
||||
if(CPU_SUPPORTS_SSE2)
|
||||
set(HAVE_SSE2 TRUE)
|
||||
target_compile_options(sdl-build-options INTERFACE "-msse2")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -835,7 +831,6 @@ if(SDL_ASSEMBLY)
|
||||
cmake_pop_check_state()
|
||||
if(CPU_SUPPORTS_SSE3)
|
||||
set(HAVE_SSE3 TRUE)
|
||||
target_compile_options(sdl-build-options INTERFACE "-msse3")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user