From 125aee3011c7256cd901e5d5a0695132eac01702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Or=C5=A1uli=C4=87?= Date: Mon, 26 Jun 2017 14:29:43 +0200 Subject: [PATCH] Fix PCL linking issue in Zesty (#396) Fixes #355. --- cartographer_ros/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cartographer_ros/CMakeLists.txt b/cartographer_ros/CMakeLists.txt index d7ff0b9..1e82443 100644 --- a/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/CMakeLists.txt @@ -48,6 +48,12 @@ pkg_search_module(YAMLCPP REQUIRED yaml-cpp>=0.5.1) find_package(LuaGoogle REQUIRED) 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(Boost REQUIRED COMPONENTS system iostreams)