aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-08 16:30:26 -0400
committerGitHub <noreply@github.com>2020-07-08 16:30:26 -0400
commit5311b562aa3c619dca9a1a14d0a2b16281a45cc1 (patch)
tree7c675aaa3bf59455494c4a430df9fed7ff7c44d4 /CMakeLists.txt
parent9c2773409a139a7b5743e265deeeddb0d371994b (diff)
parent2af7e40ce698eab25ac44cd492e7546e1010f16a (diff)
Merge pull request #4266 from jbeich/freebsd
gcadapter: unbreak build on FreeBSD
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 27383bce8..cd40e5cfe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -331,8 +331,10 @@ endif()
# Ensure libusb is properly configured (based on dolphin libusb include)
find_package(LibUSB)
-add_subdirectory(externals/libusb)
-set(LIBUSB_LIBRARIES usb)
+if (NOT LIBUSB_FOUND)
+ add_subdirectory(externals/libusb)
+ set(LIBUSB_LIBRARIES usb)
+endif()
# Prefer the -pthread flag on Linux.