From 4a2378c16326d46f4c0a35c77cc050c21a453982 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 17 Apr 2021 08:53:42 -0400 Subject: [PATCH] Bill's fix to the hamlib CMake file. --- CMake/Modules/FindHamlib.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/Modules/FindHamlib.cmake b/CMake/Modules/FindHamlib.cmake index 6417723b9..8d21844d8 100644 --- a/CMake/Modules/FindHamlib.cmake +++ b/CMake/Modules/FindHamlib.cmake @@ -24,7 +24,7 @@ libfind_process (Hamlib) if (NOT Hamlib_PKGCONF_FOUND) if (WIN32) - set (Hamlib_LIBRARIES ${Hamlib_LIBRARIES};ws2_32) + set (Hamlib_LIBRARIES ${Hamlib_LIBRARIES};${Usb_LIBRRARY};ws2_32) else () set (Hamlib_LIBRARIES ${Hamlib_LIBRARIES};m;dl) endif () @@ -36,7 +36,7 @@ endif () # it wrong for frameworks unset (_next_is_framework) unset (_Hamlib_EXTRA_LIBS) -foreach (_lib IN LISTS Hamlib_PKGCONF_LDFLAGS) +foreach (_lib IN LISTS Hamlib_LIBRARIES Hamlib_PKGCONF_LDFLAGS) if (_next_is_framework) list (APPEND _Hamlib_EXTRA_LIBS "-framework ${_lib}") unset (_next_is_framework)