Skip to content

Commit

Permalink
Try explicitly adding protobuf generated srcs as PUBLIC sources
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Dec 29, 2023
1 parent dafbc0a commit 46592b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wpimath/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,13 @@ protobuf_generate(
wpimath
EXPORT_MACRO
${export_macro}
OUT_VAR
protobuf_generated_srcs
PROTOC_OUT_DIR
"${CMAKE_CURRENT_BINARY_DIR}/protobuf"
APPEND_PATH
)
target_sources(wpimath PUBLIC ${protobuf_generated_srcs})

add_custom_command(
TARGET wpimath
Expand Down

0 comments on commit 46592b4

Please sign in to comment.