]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
cmake: fix find protobuf
authortobtoht <tob@featherwallet.org>
Sun, 29 Sep 2024 11:00:22 +0000 (13:00 +0200)
committertobtoht <tob@featherwallet.org>
Sun, 29 Sep 2024 11:00:22 +0000 (13:00 +0200)
src/CMakeLists.txt

index e1376422e09ea25e516a779a668bcc07a4801581..e4535081b5e3d53d4578cea9652fbd27ba42c07a 100644 (file)
@@ -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()