When using cmake -DBUILD_PYBULLET=ON, force BUILD_SHARED_LIBS option

This commit is contained in:
Erwin Coumans
2016-05-04 13:46:55 -07:00
parent b0a4e126bf
commit 85368973a1

View File

@@ -194,6 +194,7 @@ OPTION(BUILD_BULLET3 "Set when you want to build Bullet 3" ON)
OPTION(BUILD_PYBULLET "Set when you want to build pybullet (experimental Python bindings for Bullet)" OFF) OPTION(BUILD_PYBULLET "Set when you want to build pybullet (experimental Python bindings for Bullet)" OFF)
IF(BUILD_PYBULLET) IF(BUILD_PYBULLET)
FIND_PACKAGE(PythonLibs 2.7 REQUIRED) FIND_PACKAGE(PythonLibs 2.7 REQUIRED)
SET(BUILD_SHARED_LIBS ON CACHE BOOL "Shared Libs" FORCE)
ENDIF(BUILD_PYBULLET) ENDIF(BUILD_PYBULLET)
IF(BUILD_BULLET3) IF(BUILD_BULLET3)