mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-02-04 22:34:59 +01:00
CMake: support for libusb on GNU/Hurd
Debian builds on hurd-i386 with a variant of libusb.
This commit is contained in:
parent
222517b506
commit
b2ee24eff5
@ -1,5 +1,5 @@
|
|||||||
if(NOT LIBUSB_FOUND)
|
if(NOT LIBUSB_FOUND)
|
||||||
pkg_check_modules (LIBUSB_PKG libusb-1.0)
|
pkg_check_modules (LIBUSB_PKG libusb-1.0 libusb)
|
||||||
find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h
|
find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h
|
||||||
PATHS
|
PATHS
|
||||||
${LIBUSB_PKG_INCLUDE_DIRS}
|
${LIBUSB_PKG_INCLUDE_DIRS}
|
||||||
@ -12,7 +12,7 @@ if(NOT LIBUSB_FOUND)
|
|||||||
set(libusb1_library_names usb-1.0 libusb-1.0)
|
set(libusb1_library_names usb-1.0 libusb-1.0)
|
||||||
|
|
||||||
#libusb-1.0 compatible library on freebsd
|
#libusb-1.0 compatible library on freebsd
|
||||||
if((CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD"))
|
if((CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "GNU"))
|
||||||
list(APPEND libusb1_library_names usb)
|
list(APPEND libusb1_library_names usb)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user