From b1377246fddb6a786d9ee035bfee71477f8e0123 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Fri, 23 Jun 2023 18:07:55 -0600 Subject: [PATCH] Ceres exposes a namespaced export and recommends it in their docs Signed-off-by: Ryan Friedman --- nav2_constrained_smoother/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nav2_constrained_smoother/CMakeLists.txt b/nav2_constrained_smoother/CMakeLists.txt index 6bc4e7dc6e..c68732d4d7 100644 --- a/nav2_constrained_smoother/CMakeLists.txt +++ b/nav2_constrained_smoother/CMakeLists.txt @@ -27,7 +27,6 @@ set(library_name nav2_constrained_smoother) include_directories( include - ${CERES_INCLUDES} ) set(dependencies @@ -42,7 +41,7 @@ set(dependencies ) add_library(${library_name} SHARED src/constrained_smoother.cpp) -target_link_libraries(${library_name} ${CERES_LIBRARIES}) +target_link_libraries(${library_name} Ceres::ceres) # prevent pluginlib from using boost target_compile_definitions(${library_name} PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS") ament_target_dependencies(${library_name} ${dependencies})