From d4c993f43a3211275cd41d54a67d0fa8632b1c0d Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Tue, 5 Sep 2023 17:11:19 +0200
Subject: [PATCH] Changes to make it compile in ubuntu 20.04

---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4f0245e..bd8f9a7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,7 +23,7 @@ FetchContent_MakeAvailable(rapidcsv)
 
 # locate the necessary dependencies
 FIND_PACKAGE(catkin REQUIRED COMPONENTS roscpp)
-FIND_PACKAGE(PCL REQUIRED COMPONENTS common)
+FIND_PACKAGE(PCL REQUIRED COMPONENTS common filters)
 
 # add the necessary include directories
 INCLUDE_DIRECTORIES(../include)
@@ -34,7 +34,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../rapidcsv/src)
 # create the shared library
 ADD_LIBRARY(${PROJECT_NAME} SHARED ${sources})
 # link necessary libraries
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PCL_COMMON_LIBRARIES})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PCL_LIBRARIES})
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${catkin_LIBRARIES})
 INSTALL(TARGETS ${PROJECT_NAME}
         RUNTIME DESTINATION bin
-- 
GitLab