diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2025-03-24 17:50:05 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2025-03-30 20:11:31 +0200 |
commit | 001c8496ebdacab326988e50df5cdc62ec1a020e (patch) | |
tree | eeae5657895cf99366e26d7db2a5f3c0778db886 | |
parent | ff197dd32d6e6eeca3b9ad7442fe7771dc94fd69 (diff) | |
download | ouroboros-001c8496ebdacab326988e50df5cdc62ec1a020e.tar.gz ouroboros-001c8496ebdacab326988e50df5cdc62ec1a020e.zip |
build: Use protoc instead of protoc-cbe
Since protobuf-c version 1.5.1 using protoc-c is deprecated:
https://github.com/protobuf-c/protobuf-c/pull/758
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmake/FindProtobufC.cmake | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cfb0c0fa..e3c7976c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,8 @@ if (NOT (PROTOBUF_C_INCLUDE_DIRS AND PROTOBUF_C_LIBRARY AND PROTOBUF_PROTOC_C_EXECUTABLE)) message(FATAL_ERROR "Protobuf C compiler required but not found. " "Please install Google Protocol Buffers.") +else () + message(STATUS "Found protobuf C compiler in ${PROTOBUF_PROTOC_C_EXECUTABLE}") endif () include_directories(${PROTOBUF_C_INCLUDE_DIRS}) diff --git a/cmake/FindProtobufC.cmake b/cmake/FindProtobufC.cmake index ff532a46..ff892b5b 100644 --- a/cmake/FindProtobufC.cmake +++ b/cmake/FindProtobufC.cmake @@ -62,7 +62,7 @@ mark_as_advanced(PROTOBUF_C_INCLUDE_DIR) # Find the protoc-c Executable find_program(PROTOBUF_PROTOC_C_EXECUTABLE - NAMES protoc-c + NAMES protoc protoc-c DOC "The Google Protocol Buffers C Compiler" ) mark_as_advanced(PROTOBUF_PROTOC_C_EXECUTABLE) |