msvc now supports sse4.2

This commit is contained in:
Payn 2024-11-17 21:41:50 -03:00
parent 33b4a621a6
commit 1644632ca5

View File

@ -192,7 +192,7 @@ elseif(GLM_ENABLE_SIMD_SSE4_2)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel") elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
add_compile_options(/QxSSE4.2) add_compile_options(/QxSSE4.2)
elseif((CMAKE_CXX_COMPILER_ID MATCHES "MSVC") AND NOT CMAKE_CL_64) elseif((CMAKE_CXX_COMPILER_ID MATCHES "MSVC") AND NOT CMAKE_CL_64)
add_compile_options(/arch:SSE2) # VC doesn't support SSE4.2 add_compile_options(/arch:SSE4.2)
endif() endif()
message(STATUS "GLM: SSE4.2 instruction set") message(STATUS "GLM: SSE4.2 instruction set")