cmake: make libusb optional
This commit is contained in:
parent
3c2aa183a1
commit
be43b62d79
4 changed files with 39 additions and 9 deletions
2
externals/CMakeLists.txt
vendored
2
externals/CMakeLists.txt
vendored
|
@ -45,7 +45,7 @@ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12" AND CMAKE_CXX_COMPILER
|
|||
endif()
|
||||
|
||||
# libusb
|
||||
if (NOT TARGET libusb::usb)
|
||||
if (ENABLE_LIBUSB AND NOT TARGET libusb::usb)
|
||||
add_subdirectory(libusb EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue