Ask Your Question

Revision history [back]

click to hide/show revision 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()