Skip to content
Snippets Groups Projects
Commit d2b0b2cb authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] pinocchio required only for tests, fix #22

parent 6d8313d5
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
IF(BUILD_PYTHON_INTERFACE)
ADD_PROJECT_DEPENDENCY(pinocchio 2.1.0 REQUIRED PKG_CONFIG_REQUIRES "pinocchio >= 2.1.0")
ADD_PROJECT_DEPENDENCY(pinocchio)
FINDPYTHON()
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})
ADD_SUBDIRECTORY(python)
......
IF(NOT pinocchio_FOUND)
MESSAGE(FATAL_ERROR "Pinocchio is required to build unit tests\n"
"please either install Pinocchio or reconfigure without unit tests (-DBUILD_TESTING=OFF)")
ENDIF(NOT pinocchio_FOUND)
SET(${PROJECT_NAME}_PYTHON_TESTS
load
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment