summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:21:27 +0100
committerChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:21:27 +0100
commit8c76e27e9f157f37e1f3c930f76c2522d25ff091 (patch)
treec5dab105e64c191047793997c869773db020c6ec /CMake
parentfa2daec5ce5510e373c53b987fa4b21a310987f6 (diff)
parent200de07a95209a55d6019ba87f0abc78d302bf4c (diff)
Update upstream source from tag 'upstream/2.0.1+repack'
Update to upstream version '2.0.1+repack' with Debian dir f7e347d4250c45b22e01a489f197c55fb378ba9c
Diffstat (limited to 'CMake')
-rw-r--r--CMake/Modules/Findhamlib.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMake/Modules/Findhamlib.cmake b/CMake/Modules/Findhamlib.cmake
index 7eebf106..98419bda 100644
--- a/CMake/Modules/Findhamlib.cmake
+++ b/CMake/Modules/Findhamlib.cmake
@@ -47,7 +47,11 @@ if (NOT PC_HAMLIB_FOUND)
# libusb-1.0 has no pkg-config file on Windows so we have to find it
# ourselves
- find_library (LIBUSB NAMES usb-1.0 PATH_SUFFIXES MinGW32/dll)
+ if (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ find_library (LIBUSB NAMES usb-1.0 PATH_SUFFIXES MinGW64/dll)
+ else ()
+ find_library (LIBUSB NAMES usb-1.0 PATH_SUFFIXES MinGW32/dll)
+ endif ()
if (LIBUSB)
set (hamlib_EXTRA_LIBRARIES ${LIBUSB} ${hamlib_EXTRA_LIBRARIES})
get_filename_component (hamlib_libusb_path ${LIBUSB} PATH)