aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2025-03-16 22:39:31 +0100
committertobtoht <tob@featherwallet.org>2025-03-18 08:36:13 +0100
commitbdcfd32f634989676594ee4d3ffc511c041d16e8 (patch)
treedd2a18a357700a4c43b9d3db9e6522bab639de4b /cmake
parent88a5d076822f39cdd897d3f962346f30e4901244 (diff)
downloadmonzero-core-bdcfd32f634989676594ee4d3ffc511c041d16e8.tar.gz
monzero-core-bdcfd32f634989676594ee4d3ffc511c041d16e8.tar.xz
monzero-core-bdcfd32f634989676594ee4d3ffc511c041d16e8.zip
trezor: fix protobuf 30 compatibility
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CheckTrezor.cmake4
1 files changed, 4 insertions, 0 deletions
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()