From 0db8e4c74f523c3650294e25fe32891d99285a63 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Fri, 3 Nov 2023 20:16:42 -0400 Subject: [PATCH] Fix protobuf generation when building with make --- wpimath/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpimath/CMakeLists.txt b/wpimath/CMakeLists.txt index 32e4ef12b78..0d4b27c6e90 100644 --- a/wpimath/CMakeLists.txt +++ b/wpimath/CMakeLists.txt @@ -5,6 +5,8 @@ include(CompileWarnings) include(AddTest) include(DownloadAndCheck) +# workaround for makefiles - for some reason parent directories aren't created. +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})