Merge pull request #1322 from ivansouzamf/master

Add support for sse4.2 when using msvc
This commit is contained in:
Christophe
2025-01-22 09:37:15 +01:00
committed by GitHub

View File

@@ -193,7 +193,7 @@ elseif(GLM_ENABLE_SIMD_SSE4_2)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
add_compile_options(/QxSSE4.2)
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()
message(STATUS "GLM: SSE4.2 instruction set")