mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
use pkg-config to find libusb
This makes more (but not all) of the compilation process succeed on NetBSD.
This commit is contained in:
parent
2c91367429
commit
c1e6316bdc
@ -703,7 +703,9 @@ include_directories(Externals/soundtouch)
|
|||||||
dolphin_find_optional_system_library(CUBEB Externals/cubeb)
|
dolphin_find_optional_system_library(CUBEB Externals/cubeb)
|
||||||
|
|
||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
dolphin_find_optional_system_library(LibUSB Externals/libusb)
|
dolphin_find_optional_system_library_pkgconfig(
|
||||||
|
LibUSB libusb-1.0 LibUSB::LibUSB Externals/libusb
|
||||||
|
)
|
||||||
add_definitions(-D__LIBUSB__)
|
add_definitions(-D__LIBUSB__)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
2
Externals/hidapi/CMakeLists.txt
vendored
2
Externals/hidapi/CMakeLists.txt
vendored
@ -15,7 +15,7 @@ else()
|
|||||||
target_link_libraries(hidapi PRIVATE udev)
|
target_link_libraries(hidapi PRIVATE udev)
|
||||||
else()
|
else()
|
||||||
target_sources(hidapi PRIVATE hidapi-src/libusb/hid.c)
|
target_sources(hidapi PRIVATE hidapi-src/libusb/hid.c)
|
||||||
target_link_libraries(hidapi PRIVATE ${LIBUSB_LIBRARIES})
|
target_link_libraries(hidapi PRIVATE LibUSB::LibUSB)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user