Skip to content

Commit

Permalink
check if files have been generated before trying to install them (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 23, 2013
1 parent c8e3165 commit 8fe4844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/pkg-genmsg.cmake.em
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ debug_message(2 "@pkg_name: Iflags=${MSG_I_FLAGS}")
@[if langs]@
@[for l in langs.split(';')]@

if(@(l)_INSTALL_DIR)
if(@(l)_INSTALL_DIR AND EXISTS ${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name)
@[if l == 'genpy']@
install(CODE "execute_process(COMMAND \"@(PYTHON_EXECUTABLE)\" -m compileall \"${CATKIN_DEVEL_PREFIX}/${@(l)_INSTALL_DIR}/@pkg_name\")")
@[end if]@
Expand Down

0 comments on commit 8fe4844

Please sign in to comment.