Skip to content

Commit

Permalink
Move drake_find_package call and declare system dependency for protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed May 2, 2017
1 parent 7782a5c commit 330d8d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ macro(drake_setup_options)
DEPENDS "HAVE_LCM"
"libbot2 robotics suite LCM types")

drake_system_dependency(
PROTOBUF REQUIRES Protobuf
"Google protocol buffers")

drake_system_dependency(
ROBOTLOCOMOTION_LCMTYPES OPTIONAL REQUIRES robotlocomotion-lcmtypes
DEPENDS "HAVE_BOT_CORE_LCMTYPES"
Expand Down
1 change: 1 addition & 0 deletions cmake/packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ macro(drake_find_packages)
set_property(TARGET GMock::GMock APPEND PROPERTY
INTERFACE_COMPILE_DEFINITIONS ${GTEST_DEFINITIONS})

drake_find_package(Protobuf MODULE REQUIRED)
drake_find_package(tinyobjloader CONFIG REQUIRED)

# END required packages
Expand Down
1 change: 0 additions & 1 deletion drake/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Drake common library
#

drake_find_package(Protobuf REQUIRED)
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS matlab_rpc.proto)

# Generated code.
Expand Down

0 comments on commit 330d8d2

Please sign in to comment.