Skip to content

Commit

Permalink
[zdepth][sesame_ros] specify ROS_DISTRO for ros-obese
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Nov 25, 2024
1 parent f32d0b6 commit 908a934
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/zdepth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(zdepth)

include(ExternalProject)

if("$ENV{ROS_DISTRO}" STRGREATER "kinetic")
if(NOT "$ENV{ROS_DISTRO}" STREQUAL "indigo" OR NOT "$ENV{ROS_DISTRO}" STREQUAL "kinetic")
ExternalProject_Add(
zdepth
GIT_REPOSITORY https://github.com/catid/Zdepth.git
Expand Down
6 changes: 3 additions & 3 deletions sesame_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ catkin_package(
CATKIN_DEPENDS message_runtime
)

if($ENV{ROS_DISTRO} STRGREATER "melodic")
if($ENV{ROS_DISTRO} STREQUAL "kinetic" OR $ENV{ROS_DISTRO} STREQUAL "melodic")
catkin_generate_virtualenv(
PYTHON_INTERPRETER python3
PYTHON_INTERPRETER python2
CHECK_VENV FALSE
)
elseif("$ENV{ROS_DISTRO}" STREQUAL "indigo")
Expand All @@ -34,7 +34,7 @@ elseif("$ENV{ROS_DISTRO}" STREQUAL "indigo")
)
else()
catkin_generate_virtualenv(
PYTHON_INTERPRETER python2
PYTHON_INTERPRETER python3
CHECK_VENV FALSE
)
endif()
Expand Down

0 comments on commit 908a934

Please sign in to comment.