catkin_simple: Implicitly linking of yaml-cpp library fails when building in install space
I'm using the yaml-cpp
system dependency in my package.xml when building with catkin_simple
:
<depend>yaml-cpp</depend>
However, this doesn't work when using catkin config --install
. I need to explicitly link the yaml-cpp
library in my CMakeLists to make it build:
target_link_libraries(${PROJECT_NAME} yaml-cpp)
Otherwise, I'm getting undefined reference
errors. Can someone explain this to me since catkin_simple
implicitly links other system dependencies just fine.