Skip to content

Commit

Permalink
Fix installation conditions of 'launch' files with catkin
Browse files Browse the repository at this point in the history
  • Loading branch information
ssr-yuki committed May 1, 2024
1 parent 941e09d commit c887ce0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ if(DEFINED ENV{ROS_VERSION})
# For ros_control
install(FILES plugins.xml DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS
)
# Install `launch` dir. only if `--install` option is set in catkin config
if(${CMAKE_INSTALL_PREFIX} MATCHES .*/install)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS
PATTERN "ros2" EXCLUDE
)
endif()
elseif($ENV{ROS_VERSION} EQUAL 2)
ament_package()

Expand Down

0 comments on commit c887ce0

Please sign in to comment.