summaryrefslogtreecommitdiff
path: root/externals/find-modules/Findlibusb.cmake
diff options
context:
space:
mode:
authorGravatar liamwhite2023-01-02 13:45:36 -0500
committerGravatar GitHub2023-01-02 13:45:36 -0500
commita7e610403df97203a2ab5c7eb53c7d11960b3d79 (patch)
treec17a3f5362f35d7ffbcc46c881f1b656e71db81b /externals/find-modules/Findlibusb.cmake
parentMerge pull request #9541 from abouvier/cmake-option (diff)
parentcmake: move find-modules to root cmake dir (diff)
downloadyuzu-a7e610403df97203a2ab5c7eb53c7d11960b3d79.tar.gz
yuzu-a7e610403df97203a2ab5c7eb53c7d11960b3d79.tar.xz
yuzu-a7e610403df97203a2ab5c7eb53c7d11960b3d79.zip
Merge pull request #9542 from abouvier/cmake-module-path
cmake: move find-modules to root cmake dir
Diffstat (limited to 'externals/find-modules/Findlibusb.cmake')
-rw-r--r--externals/find-modules/Findlibusb.cmake16
1 files changed, 0 insertions, 16 deletions
diff --git a/externals/find-modules/Findlibusb.cmake b/externals/find-modules/Findlibusb.cmake
deleted file mode 100644
index 0eadce957..000000000
--- a/externals/find-modules/Findlibusb.cmake
+++ /dev/null
@@ -1,16 +0,0 @@
1# SPDX-FileCopyrightText: 2022 Alexandre Bouvier <contact@amb.tf>
2#
3# SPDX-License-Identifier: GPL-3.0-or-later
4
5find_package(PkgConfig QUIET)
6pkg_search_module(LIBUSB QUIET IMPORTED_TARGET libusb-1.0)
7
8include(FindPackageHandleStandardArgs)
9find_package_handle_standard_args(libusb
10 REQUIRED_VARS LIBUSB_LINK_LIBRARIES
11 VERSION_VAR LIBUSB_VERSION
12)
13
14if (libusb_FOUND AND NOT TARGET libusb::usb)
15 add_library(libusb::usb ALIAS PkgConfig::LIBUSB)
16endif()