diff options
Diffstat (limited to 'externals')
-rw-r--r-- | externals/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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() |