Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
buildscripts: update bullet to 2.87
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzz committed Apr 4, 2018
1 parent b447e54 commit 7a783b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions buildscripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ set(SDL2_VERSION 2.0.8)
set(SDL2_HASH SHA256=edc77c57308661d576e843344d8638e025a7818bff73f8fbfab09c3c5fd092ec)

# https://github.com/bulletphysics/bullet3/releases
set(BULLET_VERSION 2.86.1)
set(BULLET_HASH SHA256=c058b2e4321ba6adaa656976c1a138c07b18fc03b29f5b82880d5d8228fbf059)
set(BULLET_VERSION 2.87)
set(BULLET_HASH SHA256=438c151c48840fe3f902ec260d9496f8beb26dba4b17769a4a53212903935f95)

# https://github.com/MyGUI/mygui/releases
set(MYGUI_VERSION 3.2.2)
Expand Down Expand Up @@ -273,11 +273,14 @@ ExternalProject_Add(bullet
URL_HASH ${BULLET_HASH}
DOWNLOAD_DIR ${download_dir}

PATCH_COMMAND patch -d <SOURCE_DIR> -p1 -t -N < ${CMAKE_SOURCE_DIR}/patches/bullet-fix-cmake.patch

CONFIGURE_COMMAND ${wrapper_command} cmake <SOURCE_DIR>
${COMMON_CMAKE_ARGS}
-DBUILD_BULLET2_DEMOS=OFF
-DBUILD_CPU_DEMOS=OFF
-DBUILD_UNIT_TESTS=OFF
-DBUILD_EXTRAS=OFF

BUILD_COMMAND ${wrapper_command} $(MAKE)

Expand Down
12 changes: 12 additions & 0 deletions buildscripts/patches/bullet-fix-cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ur a/build3/cmake/FindPythonLibs.cmake b/build3/cmake/FindPythonLibs.cmake
--- a/build3/cmake/FindPythonLibs.cmake
+++ b/build3/cmake/FindPythonLibs.cmake
@@ -112,7 +112,7 @@

message(STATUS "Looking for versions: ${_PYTHON_VERSIONS}")

- FIND_FILE(_FIND_LIB_PYTHON_PY FindLibPython.py PATHS ${CMAKE_MODULE_PATH} ${CMAKE_ROOT}/Modules)
+ FIND_FILE(_FIND_LIB_PYTHON_PY FindLibPython.py PATHS ${CMAKE_MODULE_PATH} ${CMAKE_ROOT}/Modules CMAKE_FIND_ROOT_PATH_BOTH)

if(NOT _FIND_LIB_PYTHON_PY)
message(FATAL_ERROR "Could not find required file 'FindLibPython.py'")

0 comments on commit 7a783b8

Please sign in to comment.