diff --git a/CMakeLists.txt b/CMakeLists.txt index d541d155..04d6c164 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -509,25 +509,14 @@ ENDIF(costmap_2d_FOUND) ## Mark executable scripts (Python etc.) for installation ## in contrast to setup.py, you can choose the destination -if(COMMAND catkin_install_python) # ROS Noetic - catkin_install_python(PROGRAMS - scripts/patrol.py - scripts/objects_to_tags.py - scripts/point_to_tf.py - scripts/transform_to_tf.py - scripts/yaml_to_camera_info.py - DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} - ) -else() # prior to ROS Noetic - install(PROGRAMS - scripts/patrol.py - scripts/objects_to_tags.py - scripts/point_to_tf.py - scripts/transform_to_tf.py - scripts/yaml_to_camera_info.py - DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} - ) -endif() +catkin_install_python(PROGRAMS + scripts/patrol.py + scripts/objects_to_tags.py + scripts/point_to_tf.py + scripts/transform_to_tf.py + scripts/yaml_to_camera_info.py + DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} +) ## Mark executables and/or libraries for installation install(TARGETS