Fix build failures with protobuf-c

This commit is contained in:
Zachary Hall 2024-10-15 09:36:23 -07:00
parent fed492c663
commit 3799b1a166
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View file

@ -221,10 +221,10 @@ macro(prefix_all)
endmacro() endmacro()
include(FetchContent) include(FetchContent)
execute_process(COMMAND patch -u -Np1 -i ${CMAKE_SOURCE_DIR}/protobuf_c_optional-1.patch WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/subprojects/protobuf-c/) #execute_process(COMMAND patch -u -Np1 -i ${CMAKE_SOURCE_DIR}/protobuf_c_optional-1.patch WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/subprojects/protobuf-c/)
set(BUILD_PROTOC ON CACHE BOOL "" FORCE) #set(BUILD_PROTOC ON CACHE BOOL "" FORCE)
set(BUILD_TESTS OFF CACHE BOOL "" FORCE) #set(BUILD_TESTS OFF CACHE BOOL "" FORCE)
add_subdirectory(${CMAKE_SOURCE_DIR}/subprojects/protobuf-c/build-cmake) #add_subdirectory(${CMAKE_SOURCE_DIR}/subprojects/protobuf-c/build-cmake)
if(BUILD_PROTOBUF) if(BUILD_PROTOBUF)
set(_PROTOBUF_LIBPROTOBUF protobuf::libprotobuf) set(_PROTOBUF_LIBPROTOBUF protobuf::libprotobuf)
else() else()