Skip to content

Commit

Permalink
external: fork bullet with own patches
Browse files Browse the repository at this point in the history
We need to be able to force bullet to static when building on windows.
See the commit the fork adds.

Fix NPT-89
  • Loading branch information
Ryp committed Oct 23, 2023
1 parent 5d7da5d commit 5698c5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
url = https://github.com/lvandeve/lodepng
[submodule "external/bullet3"]
path = external/bullet3
url = https://github.com/bulletphysics/bullet3
url = https://github.com/Ryp/bullet3
6 changes: 6 additions & 0 deletions cmake/bullet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ option(INSTALL_LIBS OFF)
option(BUILD_UNIT_TESTS OFF)
option(INSTALL_CMAKE_FILES OFF)

# Force static libs with MSVC
# https://stackoverflow.com/questions/28840628/building-bullet-physics-as-shared-libraries
if(MSVC)
option(BULLET_BUILD_SHARED_LIBS OFF)
endif()

add_subdirectory(${BULLET_PATH} ${CMAKE_BINARY_DIR}/external/bullet)

# Wrap bullet for easier consumption
Expand Down

0 comments on commit 5698c5b

Please sign in to comment.