diff --git a/nav2_constrained_smoother/CMakeLists.txt b/nav2_constrained_smoother/CMakeLists.txt index 6bc4e7dc6ee..c68732d4d75 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})