Skip to content

Commit

Permalink
fixed downstream python cmake not found (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Jun 22, 2023
1 parent dcbad6a commit 092f6ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ IF(NOT TORCH_FOUND)
ENDIF()
IF(NOT WITH_PYTHON OR NOT Python3_FOUND)
SET(PYTHON "//")
SET(CONF_WITH_PYTHON 0)
ELSE()
SET(CONF_WITH_PYTHON 1)
ENDIF()
IF(ADD_VTK_GUI_SUPPORT_QT_TO_CONF)
SET(CONF_VTK_QT true)
Expand Down
4 changes: 4 additions & 0 deletions RTABMapConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down

0 comments on commit 092f6ab

Please sign in to comment.