From 75471dc62d77d1e2666c72ca5076120ca098e6db Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Tue, 17 Jan 2023 14:24:57 +0100 Subject: [PATCH] CMake: conditionnal findpython() call --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c16461..6ea8d32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,10 +26,12 @@ include(cmake/python.cmake) compute_project_args(PROJECT_ARGS LANGUAGES CXX) project(${PROJECT_NAME} ${PROJECT_ARGS}) -findpython() - add_project_dependency("hpp-manipulation-corba" REQUIRED) +if(NOT FINDPYTHON_ALREADY_CALLED) + findpython() +endif() + add_subdirectory(src) set(CATKIN_PACKAGE_SHARE_DESTINATION -- GitLab