bypass protobuf generation for now - release

This commit is contained in:
philippe44
2022-11-19 19:01:47 -08:00
parent 5df561890c
commit 0e12f7f887

View File

@@ -36,11 +36,17 @@ if(UNIX AND NOT APPLE)
endif()
# Build protobuf code
if(0)
set(NANOPB_OPTIONS "-I${CMAKE_CURRENT_SOURCE_DIR}")
file(GLOB PROTOS protobuf/*.proto)
nanopb_generate_cpp(PROTO_SRCS PROTO_HDRS RELPATH ${CMAKE_CURRENT_SOURCE_DIR} ${PROTOS})
add_custom_target(generate_proto_sources DEPENDS ${PROTO_SRCS} ${PROTO_HDRS})
set_source_files_properties(${PROTO_SRCS} ${PROTO_HDRS} PROPERTIES GENERATED TRUE)
else()
list(APPEND SOURCES "protobuf/authentication.pb.c" "protobuf/keyexchange.pb.c" "protobuf/mercury.pb.c" "protobuf/metadata.pb.c" "protobuf/spirc.pb.c")
list(APPEND EXTRA_INCLUDES ".")
message(WARNING "NOT GENERATING PROTOBUF")
endif()
add_library(cspot STATIC ${SOURCES} ${PROTO_SRCS})
# PUBLIC to propagate includes from bell to cspot dependents