pcl_ros: fix exported includes in Ubuntu Artful
pcl_ros needs the same fix as pcl_conversions
This commit is contained in:
parent
cd3720923a
commit
f8fee6128a
@ -18,6 +18,21 @@ if(NOT "${PCL_LIBRARIES}" STREQUAL "")
|
|||||||
"vtkRenderingQt")
|
"vtkRenderingQt")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# There is a bug in the Ubuntu Artful (17.10) version of the VTK package,
|
||||||
|
# where it includes /usr/include/*-linux-gnu/freetype2 in the include
|
||||||
|
# directories (which doesn't exist). This filters down to the PCL_INCLUDE_DIRS,
|
||||||
|
# and causes downstream projects trying to use these libraries to fail to
|
||||||
|
# configure properly. Here we remove those bogus entries so that downstream
|
||||||
|
# consumers of this package succeed.
|
||||||
|
if(NOT "${PCL_INCLUDE_DIRS}" STREQUAL "")
|
||||||
|
foreach(item ${PCL_INCLUDE_DIRS})
|
||||||
|
string(REGEX MATCH "/usr/include/.*-linux-gnu/freetype2" item ${item})
|
||||||
|
if(item)
|
||||||
|
list(REMOVE_ITEM PCL_INCLUDE_DIRS ${item})
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
## Find catkin packages
|
## Find catkin packages
|
||||||
find_package(catkin REQUIRED COMPONENTS
|
find_package(catkin REQUIRED COMPONENTS
|
||||||
dynamic_reconfigure
|
dynamic_reconfigure
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user