diff options
author | xiphon <xiphon@protonmail.com> | 2019-07-09 21:57:48 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2019-07-09 22:13:59 +0000 |
commit | 45c28d8a0e1b56f71e7afc36940668d79065eae4 (patch) | |
tree | cf7b1c94aa4a293e3a0e46c55ce4bf6ff71e4b7f /cmake/CheckTrezor.cmake | |
parent | Merge pull request #5641 (diff) | |
download | monero-45c28d8a0e1b56f71e7afc36940668d79065eae4.tar.xz |
build: fix OSX static libusb check and link against static libobjc
Diffstat (limited to 'cmake/CheckTrezor.cmake')
-rw-r--r-- | cmake/CheckTrezor.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/CheckTrezor.cmake b/cmake/CheckTrezor.cmake index 6aabdda36..d2fe60d92 100644 --- a/cmake/CheckTrezor.cmake +++ b/cmake/CheckTrezor.cmake @@ -159,7 +159,7 @@ if(Protobuf_FOUND AND USE_DEVICE_TREZOR AND TREZOR_PYTHON AND Protobuf_COMPILE_T set(TREZOR_LIBUSB_LIBRARIES "") if(LibUSB_COMPILE_TEST_PASSED) - list(APPEND TREZOR_LIBUSB_LIBRARIES ${LibUSB_LIBRARIES}) + list(APPEND TREZOR_LIBUSB_LIBRARIES ${LibUSB_LIBRARIES} ${LIBUSB_DEP_LINKER}) message(STATUS "Trezor compatible LibUSB found at: ${LibUSB_INCLUDE_DIRS}") endif() @@ -174,7 +174,7 @@ if(Protobuf_FOUND AND USE_DEVICE_TREZOR AND TREZOR_PYTHON AND Protobuf_COMPILE_T if (TREZOR_LIBUSB_LIBRARIES) list(APPEND TREZOR_DEP_LIBS ${TREZOR_LIBUSB_LIBRARIES}) - string(APPEND TREZOR_DEP_LINKER " -lusb-1.0") + string(APPEND TREZOR_DEP_LINKER " -lusb-1.0 ${LIBUSB_DEP_LINKER}") endif() endif() endif() |