diff options
| -rw-r--r-- | ports/bullet3/CONTROL | 3 | ||||
| -rw-r--r-- | ports/bullet3/portfile.cmake | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ports/bullet3/CONTROL b/ports/bullet3/CONTROL index 437908356..512b5d527 100644 --- a/ports/bullet3/CONTROL +++ b/ports/bullet3/CONTROL @@ -2,3 +2,6 @@ Source: bullet3 Version: 2.88
Homepage: https://github.com/bulletphysics/bullet3
Description: Bullet Physics is a professional collision detection, rigid body, and soft body dynamics library
+
+Feature: multithreading
+Description: Multithreading funcitonality for bullet3
\ No newline at end of file diff --git a/ports/bullet3/portfile.cmake b/ports/bullet3/portfile.cmake index aef9757a7..fc3e7bc34 100644 --- a/ports/bullet3/portfile.cmake +++ b/ports/bullet3/portfile.cmake @@ -10,6 +10,11 @@ vcpkg_from_github( HEAD_REF master ) +set(BULLET_MULTITHREADING OFF) +if ("multithreading" IN_LIST FEATURES) + set(BULLET_MULTITHREADING ON) +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} OPTIONS @@ -21,6 +26,7 @@ vcpkg_configure_cmake( -DBUILD_EXTRAS=OFF -DBUILD_UNIT_TESTS=OFF -DINSTALL_LIBS=ON + -DBULLET2_MULTITHREADING=${BULLET_MULTITHREADING} ) vcpkg_install_cmake() |
