Skip to content

Commit

Permalink
Merge pull request #1322 from ivansouzamf/master
Browse files Browse the repository at this point in the history
Add support for sse4.2 when using msvc
  • Loading branch information
Groovounet authored Jan 22, 2025
2 parents 7a878c2 + 5773887 commit 6dddbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 6dddbfb

Please sign in to comment.