mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Another attempt to get cross platform package finding working
This commit is contained in:
parent
3591f13ff0
commit
8065f3b889
@ -93,8 +93,6 @@ libfind_process (Hamlib)
|
||||
if (NOT Hamlib_PKGCONF_FOUND)
|
||||
if (WIN32)
|
||||
set (Hamlib_LIBRARIES ${Hamlib_LIBRARIES};${Usb_LIBRARY};ws2_32)
|
||||
# pretend pkg-config worked
|
||||
set (Hamlib_PKGCONF_LDFLAGS ${Usb_LIBRARY};ws2_32)
|
||||
else ()
|
||||
set (Hamlib_LIBRARIES ${Hamlib_LIBRARIES};m;dl)
|
||||
endif ()
|
||||
@ -106,7 +104,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)
|
||||
if (_next_is_framework)
|
||||
list (APPEND _Hamlib_EXTRA_LIBS "-framework ${_lib}")
|
||||
unset (_next_is_framework)
|
||||
|
Loading…
Reference in New Issue
Block a user