aboutsummaryrefslogtreecommitdiff
path: root/externals/find-modules/Findlibusb.cmake
diff options
context:
space:
mode:
authorAndrea Pappacoda <andrea@pappacoda.it>2022-12-14 09:30:31 +0100
committerAndrea Pappacoda <andrea@pappacoda.it>2022-12-15 11:52:50 +0100
commit4447c9a46edafc5dbea80c96add3605c177c1b5b (patch)
treec84657899612a9c40ec10ff9349b4d3f42063766 /externals/find-modules/Findlibusb.cmake
parente2f32e8c88621dbb816d38bc1ffc610d7eb2ae03 (diff)
build: tweak the find modules even more
As described in https://github.com/yuzu-emu/yuzu/pull/9395#discussion_r1047456172 checking for PKG_CONFIG_FOUND before calling pkg_search_module() is unneeded, and some find modules (like FindFFmpeg.cmake) don't do this already. Consequently, this patch removes these checks.
Diffstat (limited to 'externals/find-modules/Findlibusb.cmake')
-rw-r--r--externals/find-modules/Findlibusb.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/externals/find-modules/Findlibusb.cmake b/externals/find-modules/Findlibusb.cmake
index 66f61001c..0eadce957 100644
--- a/externals/find-modules/Findlibusb.cmake
+++ b/externals/find-modules/Findlibusb.cmake
@@ -3,9 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
find_package(PkgConfig QUIET)
-if (PKG_CONFIG_FOUND)
- pkg_search_module(LIBUSB QUIET IMPORTED_TARGET libusb-1.0)
-endif()
+pkg_search_module(LIBUSB QUIET IMPORTED_TARGET libusb-1.0)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(libusb