Skip to content

Commit

Permalink
Remove unnecessary use of ament_target_dependencies. (#637)
Browse files Browse the repository at this point in the history
We can just use target_link_libraries instead.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Nov 27, 2023
1 parent e07648f commit b18c79e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tf2_eigen_kdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)

ament_add_gtest(tf2_eigen_kdl_test test/tf2_eigen_kdl_test.cpp)
target_link_libraries(tf2_eigen_kdl_test ${PROJECT_NAME})
ament_target_dependencies(tf2_eigen_kdl_test tf2)
target_link_libraries(tf2_eigen_kdl_test ${PROJECT_NAME} tf2::tf2)
endif()

ament_package()

0 comments on commit b18c79e

Please sign in to comment.