aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLassi <lassilaati@gmail.com>2019-07-31 02:10:59 +0300
committerCurtis J Bezault <curtbezault@gmail.com>2019-07-30 19:10:59 -0400
commit80b187ad64ebcd5cbab7fab982c04e6862076d8e (patch)
tree2bc6aeb1566262ea37095731902c830a7ec17bb4
parent64aa585677a8f06cac095f9e81a5ca3f1dbd6f76 (diff)
downloadvcpkg-80b187ad64ebcd5cbab7fab982c04e6862076d8e.tar.gz
vcpkg-80b187ad64ebcd5cbab7fab982c04e6862076d8e.zip
[Bullet3] feature for multithreading (#7474)
* feature for multithreading switch * remove prefer ninja
-rw-r--r--ports/bullet3/CONTROL3
-rw-r--r--ports/bullet3/portfile.cmake6
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()