summaryrefslogtreecommitdiffstats
path: root/externals/CMakeLists.txt
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-12-28 23:26:46 +0100
committerLiam <byteslice@airmail.cc>2022-12-28 23:26:46 +0100
commitbe43b62d79cc03f9908ce5036f96a94e9053ba65 (patch)
tree0c55f4709eb56914520aa711f5735a96877fda1f /externals/CMakeLists.txt
parentcmake: ignore missing package finders for packages with submodule fallbacks (diff)
downloadyuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar
yuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar.gz
yuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar.bz2
yuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar.lz
yuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar.xz
yuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar.zst
yuzu-be43b62d79cc03f9908ce5036f96a94e9053ba65.zip
Diffstat (limited to 'externals/CMakeLists.txt')
-rw-r--r--externals/CMakeLists.txt2
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()