From 93a7305484db43c817c77aef118b960cbd7c96b1 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Mon, 15 Jan 2024 13:35:28 +0100 Subject: [PATCH] build(osqp_interface): use ${PROJECT_NAME} for autoware_osqp_interface targets Signed-off-by: Esteve Fernandez --- common/osqp_interface/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/osqp_interface/CMakeLists.txt b/common/osqp_interface/CMakeLists.txt index 5eb01a9c02fcf..341c9abeed751 100644 --- a/common/osqp_interface/CMakeLists.txt +++ b/common/osqp_interface/CMakeLists.txt @@ -28,13 +28,13 @@ ament_auto_add_library(${PROJECT_NAME} SHARED ) target_compile_options(${PROJECT_NAME} PRIVATE -Wno-error=old-style-cast -Wno-error=useless-cast) -target_include_directories(osqp_interface +target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "${OSQP_INCLUDE_DIR}" "${EIGEN3_INCLUDE_DIR}" ) -ament_target_dependencies(osqp_interface +ament_target_dependencies(${PROJECT_NAME} Eigen3 osqp_vendor )