Skip to content

Commit d3fed35

Browse files
authored
Remove two last uses of ament_target_dependencies. (ros2#440)
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
1 parent 645cc02 commit d3fed35

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ if(BUILD_TESTING)
322322
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
323323
)
324324
if(TARGET test_filesystem)
325-
ament_target_dependencies(test_filesystem "osrf_testing_tools_cpp")
326-
target_link_libraries(test_filesystem ${PROJECT_NAME} mimick)
325+
target_link_libraries(test_filesystem ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
327326
target_compile_definitions(test_filesystem PRIVATE BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}")
328327
endif()
329328

@@ -345,8 +344,7 @@ if(BUILD_TESTING)
345344
test/test_string_map.cpp
346345
)
347346
if(TARGET test_string_map)
348-
ament_target_dependencies(test_string_map "osrf_testing_tools_cpp")
349-
target_link_libraries(test_string_map ${PROJECT_NAME})
347+
target_link_libraries(test_string_map ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools)
350348
endif()
351349

352350
ament_add_gtest(test_isalnum_no_locale

0 commit comments

Comments
 (0)