mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Windows compatibility for the portaudio package finder
This commit is contained in:
parent
a44959962c
commit
5946eaf615
@ -90,15 +90,15 @@ libfind_process (Portaudio)
|
||||
# fix up extra link libraries for macOS as target_link_libraries gets
|
||||
# it wrong for frameworks
|
||||
unset (_next_is_framework)
|
||||
unset (_portaudio_EXTRA_LIBS)
|
||||
foreach (_lib IN LISTS Portaudio_PKGCONF_LDFLAGS_OTHER)
|
||||
unset (_Portaudio_EXTRA_LIBS)
|
||||
foreach (_lib IN LISTS Portaudio_PKGCONF_LDFLAGS)
|
||||
if (_next_is_framework)
|
||||
list (APPEND _portaudio_EXTRA_LIBS "-framework ${_lib}")
|
||||
list (APPEND _Portaudio_EXTRA_LIBS "-framework ${_lib}")
|
||||
unset (_next_is_framework)
|
||||
elseif (${_lib} STREQUAL "-framework")
|
||||
set (_next_is_framework TRUE)
|
||||
else ()
|
||||
list (APPEND _portaudio_EXTRA_LIBS ${_lib})
|
||||
list (APPEND _Portaudio_EXTRA_LIBS ${_lib})
|
||||
endif ()
|
||||
endforeach ()
|
||||
|
||||
@ -109,7 +109,7 @@ if (Portaudio_FOUND AND NOT TARGET Portaudio::Portaudio)
|
||||
IMPORTED_LOCATION "${Portaudio_LIBRARY}"
|
||||
INTERFACE_COMPILE_OPTIONS "${Portaudio_PKGCONF_CFLAGS_OTHER}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${Portaudio_INCLUDE_DIRS}"
|
||||
INTERFACE_LINK_LIBRARIES "${_portaudio_EXTRA_LIBS}"
|
||||
INTERFACE_LINK_LIBRARIES "${_Portaudio_EXTRA_LIBS}"
|
||||
)
|
||||
endif ()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
find_package (portaudio REQUIRED)
|
||||
find_package (Portaudio REQUIRED)
|
||||
|
||||
find_package (libusb REQUIRED)
|
||||
|
||||
@ -57,8 +57,7 @@ add_subdirectory (libm65)
|
||||
qt5_wrap_ui (map65_GENUISRCS ${map65_UISRCS})
|
||||
|
||||
add_executable (map65 ${map65_CXXSRCS} ${map65_CSRCS} ${map65_GENUISRCS} map65.rc)
|
||||
target_include_directories (map65 PRIVATE ${PORTAUDIO_INCLUDE_DIRS})
|
||||
target_link_libraries (map65 m65impl ${FFTW3_LIBRARIES} Qt5::Widgets Qt5::Network portaudio::portaudio libusb::libusb)
|
||||
target_link_libraries (map65 m65impl ${FFTW3_LIBRARIES} Qt5::Widgets Qt5::Network Portaudio::Portaudio libusb::libusb)
|
||||
|
||||
install (
|
||||
TARGETS map65
|
||||
|
Loading…
Reference in New Issue
Block a user