From be43b62d79cc03f9908ce5036f96a94e9053ba65 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 28 Dec 2022 17:26:46 -0500 Subject: cmake: make libusb optional --- externals/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'externals') diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 4ffafd18c..a83812ebb 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -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() -- cgit v1.2.3