From d06fa633d56f029efe828e706f68c56ce808e520 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Fri, 3 Nov 2023 21:22:34 -0400 Subject: [PATCH] [build] Fix protobuf generation when building with make (#5867) --- wpimath/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpimath/CMakeLists.txt b/wpimath/CMakeLists.txt index 32e4ef12b7..997ec46e9f 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})