From a6289021a3f7710c0e3a6beb8aa420068e81607f Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 29 Sep 2024 13:00:22 +0200 Subject: [PATCH] cmake: fix find protobuf --- src/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e1376422..e4535081 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -293,8 +293,9 @@ if(DEPENDS) endif() if(DEVICE_TREZOR_READY) - if (DEPENDS) - find_package(Protobuf CONFIG REQUIRED) + find_package(Protobuf CONFIG) + if (NOT Protobuf_FOUND) + find_package(Protobuf REQUIRED) endif() target_link_libraries(feather PRIVATE ${TREZOR_DEP_LIBS}) endif() -- 2.52.0