Skip to content

Commit

Permalink
[jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in …
Browse files Browse the repository at this point in the history
…cmake
  • Loading branch information
mqcmd196 committed Dec 9, 2024
1 parent bbbdecf commit 88f6c1f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jsk_rosbag_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ catkin_package(
CATKIN_DEPENDS
)

if(("$ENV{ROS_DISTRO}" STREQUAL "noetic") OR ("$ENV{ROS_DISTRO}" STREQUAL "Debian") OR ("$ENV{ROS_DISTRO}" STREQUAL "debian"))
if($ENV{ROS_DISTRO} STREQUAL "indigo" OR $ENV{ROS_DISTRO} STREQUAL "kinetic" OR $ENV{ROS_DISTRO} STREQUAL "melodic")
catkin_generate_virtualenv(
INPUT_REQUIREMENTS requirements.in
PYTHON_INTERPRETER python3
INPUT_REQUIREMENTS requirements.in.python2
PYTHON_INTERPRETER python2
)
else()
catkin_generate_virtualenv(
INPUT_REQUIREMENTS requirements.in.python2
PYTHON_INTERPRETER python2
INPUT_REQUIREMENTS requirements.in
PYTHON_INTERPRETER python3
)
endif()

Expand Down

0 comments on commit 88f6c1f

Please sign in to comment.