mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Don't try to build libusb on FreeBSD
CMake Error at 3rdparty/libusb/libusb/os/CMakeLists.txt:90 (message): Unsupported platform FreeBSD. Currently only support Windows, OSX, & Linux.
This commit is contained in:
parent
3eb2bcad39
commit
1f845a3634
1 changed files with 7 additions and 1 deletions
8
3rdparty/CMakeLists.txt
vendored
8
3rdparty/CMakeLists.txt
vendored
|
@ -87,7 +87,13 @@ endif()
|
|||
|
||||
|
||||
# libusb
|
||||
add_subdirectory(libusb EXCLUDE_FROM_ALL)
|
||||
if(CMAKE_SYSTEM MATCHES "DragonFly|FreeBSD")
|
||||
# Always use system libusb as reference implementation isn't supported
|
||||
add_library(usb-1.0-static INTERFACE)
|
||||
target_link_libraries(usb-1.0-static INTERFACE usb)
|
||||
else()
|
||||
add_subdirectory(libusb EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
|
||||
# yaml-cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue