Hi,

I'm trying to release visp on indigo. The release process works well for Saucy, but fails for Trusty: http://www.ros.org/debbuild/indigo.html?q=visp

According to http://jenkins.ros.org/view/IbinT32/job/ros-indigo-visp_binarydeb_trusty_i386/lastFailedBuild/console
the error is:

dpkg-shlibdeps: error: couldn't find library libvisp.so.2.9 needed by debian/ros-indigo-visp/opt/ros/indigo/share/visp/demo/wireframe-simulator/servoSimu4Points

In the CMakeLists.txt I use CMAKE_INSTALL_LIBDIR to determine the installation path :

include(${CMAKE_ROOT}/Modules/GNUInstallDirs.cmake)

install(TARGETS ${VISP_INTERN_LIBRARY} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)

On Trusty the library is installed in /opt/ros/indigo/lib/i386-linux-gnu/libvisp.so.2.9.0
rather than in /opt/ros/indigo/lib/ as it seems expected by the build farm.

I can modify my CMakeLists.txt to set manually CMAKE_INSTALL_LIBDIR=lib before including GNUInstallDirs.cmake but it will be then an horrible hack.

Is there a more elegant way to fix that ?

Thanks

Fabien