Skip to content

Commit 4d7f56e

Browse files
wep21mergify[bot]
authored andcommitted
fix: use target link libraries instead of ament target deps
Signed-off-by: wep21 <[email protected]> (cherry picked from commit 89ead03)
1 parent bd169c9 commit 4d7f56e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

grid_map_cv/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ find_package(sensor_msgs REQUIRED)
1313

1414
find_package(OpenCV REQUIRED
1515
COMPONENTS
16-
opencv_photo
16+
photo
1717
)
1818

1919
grid_map_package()
@@ -43,12 +43,13 @@ add_library(${PROJECT_NAME} SHARED
4343
src/InpaintFilter.cpp
4444
)
4545

46-
ament_target_dependencies(${PROJECT_NAME} PUBLIC
47-
${dependencies}
48-
)
49-
5046
target_link_libraries(${PROJECT_NAME} PUBLIC
47+
cv_bridge::cv_bridge
5148
grid_map_core::grid_map_core
49+
opencv_photo
50+
pluginlib::pluginlib
51+
rclcpp::rclcpp
52+
${sensor_msgs_TARGETS}
5253
)
5354

5455
#############

0 commit comments

Comments
 (0)