cmake: fix find protobuf

This commit is contained in:
tobtoht 2024-09-29 13:00:22 +02:00
parent 70402bb55e
commit a6289021a3
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View 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()