Skip to content

Commit

Permalink
Remove two last uses of ament_target_dependencies. (#440)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette authored Nov 27, 2023
1 parent 645cc02 commit d3fed35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ if(BUILD_TESTING)
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
)
if(TARGET test_filesystem)
ament_target_dependencies(test_filesystem "osrf_testing_tools_cpp")
target_link_libraries(test_filesystem ${PROJECT_NAME} mimick)
target_link_libraries(test_filesystem ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
target_compile_definitions(test_filesystem PRIVATE BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}")
endif()

Expand All @@ -345,8 +344,7 @@ if(BUILD_TESTING)
test/test_string_map.cpp
)
if(TARGET test_string_map)
ament_target_dependencies(test_string_map "osrf_testing_tools_cpp")
target_link_libraries(test_string_map ${PROJECT_NAME})
target_link_libraries(test_string_map ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools)
endif()

ament_add_gtest(test_isalnum_no_locale
Expand Down

0 comments on commit d3fed35

Please sign in to comment.