Fix PCL linking issue in Zesty (#396)

Fixes #355.
master
Juraj Oršulić 2017-06-26 14:29:43 +02:00 committed by Holger Rapp
parent ecc2f08828
commit 125aee3011
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ pkg_search_module(YAMLCPP REQUIRED yaml-cpp>=0.5.1)
find_package(LuaGoogle REQUIRED) find_package(LuaGoogle REQUIRED)
find_package(PCL REQUIRED COMPONENTS common io) find_package(PCL REQUIRED COMPONENTS common io)
# Fix for PCL linking issue in Zesty, as in
# https://github.com/ros-perception/perception_pcl/blob/b53b5d5c3abc7c3afde8a77177674e6d74c59522/pcl_ros/CMakeLists.txt#L12
if(NOT "${PCL_LIBRARIES}" STREQUAL "")
# FIXME: this causes duplicates and not found error in ubuntu:zesty
list(REMOVE_ITEM PCL_LIBRARIES "/usr/lib/libmpi.so")
endif()
find_package(Eigen3 REQUIRED) find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system iostreams) find_package(Boost REQUIRED COMPONENTS system iostreams)