Skip to content
Snippets Groups Projects
Unverified Commit 95ee9a85 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #23 from nim65s/topic/pinocchio

[CMake] pinocchio required only for tests, fix #22
parents 17626058 d2b0b2cb
No related branches found
No related tags found
No related merge requests found
Pipeline #9193 passed with warnings
......@@ -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