Skip to content

Commit

Permalink
add warning in case generate_messages() is invoked without any messag…
Browse files Browse the repository at this point in the history
…es and services (#31)
  • Loading branch information
dirk-thomas committed Jul 23, 2013
1 parent 8fe4844 commit 3f864dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/pkg-genmsg.cmake.em
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ for val in dep_search_paths:
is_even = True
dep_search_paths = dep_search_paths_dict

if not messages and not services:
print('message(WARNING "Invoking generate_messages() without having added any message or service file before.\nYou should either add add_message_files() and/or add_service_files() calls or remove the invocation of generate_messages().")')

msg_deps = {}
for m in messages:
try:
Expand Down

0 comments on commit 3f864dc

Please sign in to comment.