use cmake FIND_PACKAGE(PythonLibs 2.7 REQUIRED) if pybullet is build

This commit is contained in:
Erwin Coumans
2016-05-04 13:24:06 -07:00
parent 372c4ef9c1
commit b0a4e126bf
3 changed files with 7 additions and 2 deletions

View File

@@ -192,6 +192,9 @@ ENDIF()
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)
IF(BUILD_PYBULLET)
FIND_PACKAGE(PythonLibs 2.7 REQUIRED)
ENDIF(BUILD_PYBULLET)
IF(BUILD_BULLET3)
IF(APPLE)