Commit 74e01497 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix CMake when compiling with hpp-fcl without Python.

parent 6182dddf
......@@ -219,13 +219,13 @@ IF(BUILD_PYTHON_INTERFACE)
ENDIF(BUILD_PYTHON_INTERFACE)
IF(HPP_FCL_FOUND)
IF(HPP_FCL_FOUND AND BUILD_PYTHON_INTERFACE)
LIST(APPEND ${PROJECT_NAME}_PYTHON_HEADERS
python/geometry-object.hpp
python/geometry-model.hpp
python/geometry-data.hpp
)
ENDIF(HPP_FCL_FOUND)
ENDIF(HPP_FCL_FOUND AND BUILD_PYTHON_INTERFACE)
IF(URDFDOM_FOUND)
LIST(APPEND ${PROJECT_NAME}_MULTIBODY_PARSER_HEADERS
......
......@@ -48,9 +48,11 @@ SET(${PROJECT_NAME}_MULTIBODY_SOURCES
multibody/parser/sample-models.cpp
)
SET(${PROJECT_NAME}_MULTIBODY_PARSER_PYTHON_SOURCES
multibody/parser/python.cpp
)
IF(BUILD_PYTHON_INTERFACE)
SET(${PROJECT_NAME}_MULTIBODY_PARSER_PYTHON_SOURCES
multibody/parser/python.cpp
)
ENDIF(BUILD_PYTHON_INTERFACE)
SET(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_MULTIBODY_SOURCES})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment