Skip to content

Commit

Permalink
Fix protobuf generation when building with make
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Nov 4, 2023
1 parent 049732a commit a6987b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wpimath/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ include(CompileWarnings)
include(AddTest)
include(DownloadAndCheck)

# workaround for makefiles
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/protobuf")
file(GLOB wpimath_proto_src src/main/proto/*.proto)
protobuf_generate_cpp(WPIMATH_PROTO_SRCS WPIMATH_PROTO_HDRS PROTOC_OUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/protobuf" PROTOS ${wpimath_proto_src})

Expand Down

0 comments on commit a6987b9

Please sign in to comment.