From 4447c9a46edafc5dbea80c96add3605c177c1b5b Mon Sep 17 00:00:00 2001 From: Andrea Pappacoda Date: Wed, 14 Dec 2022 09:30:31 +0100 Subject: 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. --- externals/find-modules/Findlibusb.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'externals/find-modules/Findlibusb.cmake') 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 -- cgit v1.2.3