ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
find_package creates a _FOUND variable for packages instead of an error if you don't use REQUIRED.
Try:
find_package(catkin COMPONENTS ...)
if( $catkin_FOUND )
# Build with ROS
endif()