Skip to content

Commit

Permalink
Add dependency so ROS messages are build first.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmcnulty9 committed Dec 1, 2017
1 parent d1f310d commit 14bef3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions darknet_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ target_link_libraries(${PROJECT_NAME}
${PROJECT_NAME}_lib
)

add_dependencies(${PROJECT_NAME}_lib
darknet_ros_msgs_generate_messages_cpp
)

install(TARGETS ${PROJECT_NAME}_lib
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
Expand Down

0 comments on commit 14bef3f

Please sign in to comment.