Skip to content

Commit

Permalink
Improved method for turning on SIMD
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouwe committed Jul 13, 2024
1 parent 2f4fc67 commit 2b0f64e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,18 @@ if (ENABLE_SIMD)
set(ENABLE_SIMD_FLAG
-msimd128
-msse4.2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msimd128 -msse4.2")
set(USE_WASM_SIMD ON)
else()
set(ENABLE_SIMD_FLAG "")
set(USE_WASM_SIMD OFF)
endif()

# Include Jolt
include(FetchContent)
FetchContent_Declare(
JoltPhysics
GIT_REPOSITORY "https://github.com/jrouwe/JoltPhysics"
GIT_TAG "6e0b867a246731d69e7535440aff436e54dc99bf"
GIT_TAG "256a61aeeab86ec248f597c31edb2d0ecb2080d4"
SOURCE_SUBDIR "Build"
)
FetchContent_MakeAvailable(JoltPhysics)
Expand Down

0 comments on commit 2b0f64e

Please sign in to comment.