fixed downstream python cmake not found (#1063)

This commit is contained in:
matlabbe
2023-06-21 21:04:29 -07:00
parent dcbad6a0aa
commit 092f6abccc
2 changed files with 7 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ IF(@CONF_WITH_OCTOMAP@)
find_dependency(octomap)
ENDIF()
IF(@CONF_WITH_PYTHON@)
find_dependency(Python3 COMPONENTS Interpreter Development NumPy)
ENDIF()
# Provide those for backward compatibilities (e.g., catkin requires them to propagate dependencies)
set(RTABMap_INCLUDE_DIRS "")
set(RTABMap_LIBRARIES "")