Why can't I call cmake install like in the docs?
I'm trying to port a package to ROS2 using ament cmake hooks based on https://index.ros.org//doc/ros2/Tutor...
When I do something like the recommendation for target-based installs, I get an error about an unknown mode.
So is there a typo in that documentation? Also, when would I want a target-based install and when would I want a non-target-based install?
Cmake Fragment:
install(
sba
TARGETS sba
EXPORT export_sba
LIBRARY DESTINATION lib
INCLUDES DESTINATION include
)
Error message
--- stderr: sparse_bundle_adjustment
CMake Error at /opt/ros/dashing/share/ament_cmake_core/cmake/symlink_install/install.cmake:43 (_install):
_install called with unknown mode SBA
Call Stack (most recent call first):
CMakeLists.txt:35 (install)