Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Commit

Permalink
generate_rosjava_messages cmake api needs the rosjava environment.
Browse files Browse the repository at this point in the history
This makes sure the call to set environment variables occurs when
generating rosjava messages. Does this under the hood so the user
doesn't have to make a second api call to the rosjava catkin api.
  • Loading branch information
stonier committed Mar 1, 2015
1 parent b40bb20 commit 94786bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ project(genjava)
# Find Package
##############################################################################

find_package(catkin REQUIRED COMPONENTS genmsg)
find_package(catkin REQUIRED COMPONENTS genmsg rosjava_build_tools)

##############################################################################
# Catkin
##############################################################################

catkin_package(
CATKIN_DEPENDS genmsg
CATKIN_DEPENDS genmsg rosjava_build_tools
CFG_EXTRAS
genjava-extras.cmake
genjava-catkin-api.cmake
Expand Down
1 change: 1 addition & 0 deletions cmake/genjava-catkin-api.cmake.em
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ macro(generate_rosjava_messages)
if(ARG_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "generate_rosjava_messages() called with unused arguments: ${ARG_UNPARSED_ARGUMENTS}")
endif()
catkin_rosjava_env_setup()
set(ROS_GRADLE_VERBOSE $ENV{ROS_GRADLE_VERBOSE})
if(ROS_GRADLE_VERBOSE)
set(verbosity "--verbosity")
Expand Down

0 comments on commit 94786bb

Please sign in to comment.