Skip to content

Commit

Permalink
[cmake] Remove unnecessary install when generating a python package.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-stasse committed Mar 20, 2019
1 parent 71ff956 commit 60b34b4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,24 @@ SEARCH_FOR_BOOST()
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(unitTesting)
ADD_SUBDIRECTORY(doc)
IF (NOT INSTALL_PYTHON_INTERFACE_ONLY)
ADD_SUBDIRECTORY(doc)
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)

# **********************************
# Robot_utils_sot_py PYTHON module *
# **********************************
IF(BUILD_PYTHON_INTERFACE)
PYTHON_ADD_MODULE(robot_utils_sot_py src/tools/robot-utils-py.cpp)
PKG_CONFIG_USE_DEPENDENCY(robot_utils_sot_py dynamic-graph)
PKG_CONFIG_USE_DEPENDENCY(robot_utils_sot_py pinocchio)
TARGET_LINK_LIBRARIES(robot_utils_sot_py ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${LIBRARY_NAME})
TARGET_LINK_BOOST_PYTHON(robot_utils_sot_py)
INSTALL(TARGETS robot_utils_sot_py DESTINATION ${PYTHON_INSTALL_DIR})

ENDIF(BUILD_PYTHON_INTERFACE)

SETUP_PROJECT_FINALIZE()
# We do not want the project to be finalized if this is
# to install only the python interface.
IF (NOT INSTALL_PYTHON_INTERFACE_ONLY)
SETUP_PROJECT_FINALIZE()
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)

0 comments on commit 60b34b4

Please sign in to comment.