Changes to support x64 Windows builds in preparation for Qt v5.12

This commit is contained in:
Bill Somerville 2019-01-15 12:09:10 +00:00
parent b3d6871786
commit ff1d3efab4

View File

@ -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
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)