mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Fixed SIMD enable for GLM tests
This commit is contained in:
parent
34a98b5220
commit
b5519d35ef
@ -72,7 +72,7 @@ if(GLM_TEST_FORCE_PURE)
|
|||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
add_definitions(/arch:IA32)
|
add_definitions(/arch:IA32)
|
||||||
endif()
|
endif()
|
||||||
elseif(GLM_TEST_ENABLE_AVX2)
|
elseif(GLM_TEST_ENABLE_SIMD_AVX2)
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
add_definitions(-mavx2)
|
add_definitions(-mavx2)
|
||||||
elseif(GLM_USE_INTEL)
|
elseif(GLM_USE_INTEL)
|
||||||
@ -80,7 +80,7 @@ elseif(GLM_TEST_ENABLE_AVX2)
|
|||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
add_definitions(/arch:AVX2)
|
add_definitions(/arch:AVX2)
|
||||||
endif()
|
endif()
|
||||||
elseif(GLM_TEST_ENABLE_AVX)
|
elseif(GLM_TEST_ENABLE_SIMD_AVX)
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
add_definitions(-mavx)
|
add_definitions(-mavx)
|
||||||
elseif(GLM_USE_INTEL)
|
elseif(GLM_USE_INTEL)
|
||||||
@ -88,7 +88,7 @@ elseif(GLM_TEST_ENABLE_AVX)
|
|||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
add_definitions(/arch:AVX)
|
add_definitions(/arch:AVX)
|
||||||
endif()
|
endif()
|
||||||
elseif(GLM_TEST_ENABLE_SSE3)
|
elseif(GLM_TEST_ENABLE_SIMD_SSE3)
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
add_definitions(-msse3)
|
add_definitions(-msse3)
|
||||||
elseif(GLM_USE_INTEL)
|
elseif(GLM_USE_INTEL)
|
||||||
@ -96,7 +96,7 @@ elseif(GLM_TEST_ENABLE_SSE3)
|
|||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3
|
add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3
|
||||||
endif()
|
endif()
|
||||||
elseif(GLM_TEST_ENABLE_SSE2)
|
elseif(GLM_TEST_ENABLE_SIMD_SSE2)
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
add_definitions(-msse2)
|
add_definitions(-msse2)
|
||||||
elseif(GLM_USE_INTEL)
|
elseif(GLM_USE_INTEL)
|
||||||
|
Loading…
Reference in New Issue
Block a user