Skip to content

Commit 4235369

Browse files
committed
[kilted] Update deprecated call to ament_target_dependencies
1 parent 89aa0b6 commit 4235369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ target_include_directories(${PROJECT_NAME}
4646
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
4747
PUBLIC $<INSTALL_INTERFACE:include>
4848
)
49-
ament_target_dependencies(${PROJECT_NAME} ${THIS_PACKAGE_INCLUDE_DEPENDS})
49+
target_link_libraries(${PROJECT_NAME} PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS})
5050

5151
# Demo executable
5252
add_executable(${PROJECT_NAME}_demo
@@ -55,7 +55,7 @@ add_executable(${PROJECT_NAME}_demo
5555
target_link_libraries(${PROJECT_NAME}_demo
5656
${PROJECT_NAME}
5757
)
58-
ament_target_dependencies(${PROJECT_NAME}_demo ${THIS_PACKAGE_INCLUDE_DEPENDS})
58+
target_link_libraries(${PROJECT_NAME}_demo PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS})
5959

6060

6161
# Exports

0 commit comments

Comments
 (0)