From 80b187ad64ebcd5cbab7fab982c04e6862076d8e Mon Sep 17 00:00:00 2001 From: Lassi Date: Wed, 31 Jul 2019 02:10:59 +0300 Subject: [Bullet3] feature for multithreading (#7474) * feature for multithreading switch * remove prefer ninja --- ports/bullet3/CONTROL | 3 +++ ports/bullet3/portfile.cmake | 6 ++++++ 2 files changed, 9 insertions(+) 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() -- cgit v1.2.3