From bdcfd32f634989676594ee4d3ffc511c041d16e8 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 16 Mar 2025 22:39:31 +0100 Subject: trezor: fix protobuf 30 compatibility --- cmake/CheckTrezor.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/CheckTrezor.cmake b/cmake/CheckTrezor.cmake index f600cc0bb..4fae15fad 100644 --- a/cmake/CheckTrezor.cmake +++ b/cmake/CheckTrezor.cmake @@ -55,6 +55,10 @@ if (USE_DEVICE_TREZOR) set(Protobuf_FOUND 1) # override found if all rquired info was provided by variables endif() + if (Protobuf_VERSION VERSION_GREATER_EQUAL 22.0) + add_definitions(-DPROTOBUF_HAS_ABSEIL) + endif() + if(TREZOR_DEBUG) set(USE_DEVICE_TREZOR_DEBUG 1) endif() -- cgit v1.2.3