From ceda701a76a960842e7e6be11bf284424520a11b Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 3 Jan 2023 18:15:47 -0500 Subject: [PATCH] include protobuf if not apple --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4bef73..e44e24b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,10 +69,12 @@ message(STATUS EXTRA_LIBRARIES: ${EXTRA_LIBRARIES}) # Protobuf ############ -include(FindProtobuf) -find_package(Protobuf) -message(STATUS "Protobuf lib: ${Protobuf_LIBRARY}, inc: ${Protobuf_INCLUDE_DIR}, protoc: ${Protobuf_PROTOC_EXECUTABLE}") -include_directories(${Protobuf_INCLUDE_DIR}) +if (NOT APPLE) + include(FindProtobuf) + find_package(Protobuf) + message(STATUS "Protobuf lib: ${Protobuf_LIBRARY}, inc: ${Protobuf_INCLUDE_DIR}, protoc: ${Protobuf_PROTOC_EXECUTABLE}") + include_directories(${Protobuf_INCLUDE_DIR}) +endif() ############ # LibUSB