Skip to content

Commit

Permalink
[collada_urdf_jsk_patch] [ros-o] add CATKIN_IGNORE only when ROS-O, u…
Browse files Browse the repository at this point in the history
…se STREQUAL to compare ROS_DISTRO in cmake
  • Loading branch information
k-okada committed Dec 26, 2024
1 parent 3f42be3 commit c7154c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Empty file.
11 changes: 9 additions & 2 deletions jsk_ros_patch/collada_urdf_jsk_patch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ project(collada_urdf_jsk_patch)
if(("$ENV{ROS_DISTRO}" STREQUAL "groovy") OR ("$ENV{ROS_DISTRO}" STREQUAL "hydro"))
set(SOURCE_DISTRO hydro-devel)
set(GIT_REPO robot_model)
elseif ("$ENV{ROS_DISTRO}" STRLESS "melodic")
elseif (("$ENV{ROS_DISTRO}" STREQUAL "indigo") OR ("$ENV{ROS_DISTRO}" STREQUAL "jade") OR ("$ENV{ROS_DISTRO}" STREQUAL "kinetic"))
set(SOURCE_DISTRO bd4fc369d56eaa0c31d8cb17677e00b9d9685de6) # 1.11.13, before strip indigo
set(GIT_REPO robot_model)
elseif ("$ENV{ROS_DISTRO}" STREQUAL "melodic" OR "$ENV{ROS_DISTRO}" STRGREATER "melodic")
elseif (("$ENV{ROS_DISTRO}" STREQUAL "melodic") OR ("$ENV{ROS_DISTRO}" STREQUAL "noetic"))
set(SOURCE_DISTRO 923c5d33bd245e82134e8ae02e4c9d379e80eb27) # 1.12.12
set(GIT_REPO collada_urdf)
else()
find_package(catkin REQUIRED)
catkin_package(CATKIN_DEPENDS)
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/CATKIN_IGNORE)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CATKIN_IGNORE
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
return()
endif()
if ("$ENV{ROS_DISTRO}" STREQUAL "kinetic" OR "$ENV{ROS_DISTRO}" STRGREATER "kinetic")
set(CXXFLAGS CXXFLAGS=-std=gnu++11)
Expand Down

0 comments on commit c7154c8

Please sign in to comment.