Commit 98c2b9a0 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

[CMake] Fix compilation without Python bindings

parent 82de5caa
......@@ -52,10 +52,11 @@ SET(${PROJECT_NAME}_MULTIBODY_PARSER_PYTHON_SOURCES
multibody/parser/python.cpp
)
SET(${PROJECT_NAME}_SOURCES
${${PROJECT_NAME}_MULTIBODY_SOURCES}
${${PROJECT_NAME}_MULTIBODY_PARSER_PYTHON_SOURCES}
)
SET(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_MULTIBODY_SOURCES})
IF(BUILD_PYTHON_INTERFACE)
LIST(APPEND ${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_MULTIBODY_PARSER_PYTHON_SOURCES})
ENDIF(BUILD_PYTHON_INTERFACE)
IF(LUA5_1_FOUND)
SET(${PROJECT_NAME}_MULTIBODY_PARSER_LUA_SOURCES
......@@ -71,7 +72,10 @@ IF(UNIX)
SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} eigen3)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${Boost_LIBRARIES})
TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME})
IF(BUILD_PYTHON_INTERFACE)
TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME})
ENDIF(BUILD_PYTHON_INTERFACE)
IF(URDFDOM_FOUND)
PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} urdfdom)
......
......@@ -29,8 +29,8 @@ MACRO(ADD_UTIL NAME UTIL_SRC PKGS)
PKG_CONFIG_USE_DEPENDENCY(${NAME} ${PKG})
ENDFOREACH(PKG)
TARGET_LINK_LIBRARIES (${NAME} ${Boost_LIBRARIES} ${PROJECT_NAME})
TARGET_LINK_BOOST_PYTHON(${NAME})
IF(BUILD_PYTHON_INTERFACE)
TARGET_LINK_BOOST_PYTHON(${NAME})
TARGET_LINK_LIBRARIES(${NAME} ${PYTHON_LIBRARIES})
ENDIF(BUILD_PYTHON_INTERFACE)
......
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