Skip to content

Commit

Permalink
Merge pull request #65 from ros/check_target
Browse files Browse the repository at this point in the history
check target across package for existance
  • Loading branch information
dirk-thomas authored Aug 26, 2016
2 parents d8853e6 + f43b716 commit 155d090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/pkg-genmsg.cmake.em
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ if(@(l)_INSTALL_DIR AND EXISTS ${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_n
)
endif()
@[for d in dependencies]@
add_dependencies(@(pkg_name)_generate_messages_@(l[3:]) @(d)_generate_messages_@(l[3:]))
if(TARGET @(d)_generate_messages_@(l[3:]))
add_dependencies(@(pkg_name)_generate_messages_@(l[3:]) @(d)_generate_messages_@(l[3:]))
endif()
@[end for]@# dependencies
@[end for]@# langs
@[end if]@

0 comments on commit 155d090

Please sign in to comment.