roslib: add rospack to CATKIN_DEPENDS (#128)

This fixes a linker issue that can arise on some build environments:

    ld: warning: librospack.so, needed by /opt/ros/indigo/lib/libroslib.so, not found (try using -rpath or -rpath-link)
    /opt/ros/indigo/lib/libroslib.so: undefined reference to `rospack::ROSPack::run(std::string const&)'
    collect2: error: ld returned 1 exit status
This commit is contained in:
Guillaume Papin 2016-11-10 11:02:23 +01:00
parent 7bb3ba7a9b
commit dac73ad913
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ find_package(catkin REQUIRED COMPONENTS rospack)
catkin_package(
INCLUDE_DIRS include
LIBRARIES roslib
CATKIN_DEPENDS rospack
CFG_EXTRAS roslib-extras.cmake)
find_package(Boost REQUIRED COMPONENTS thread)