From: tobtoht Date: Sun, 29 Sep 2024 11:00:22 +0000 (+0200) Subject: cmake: fix find protobuf X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=a6289021a3f7710c0e3a6beb8aa420068e81607f;p=gamesguru%2Ffeather.git cmake: fix find protobuf --- 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()