mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-09-15 00:55:33 +00:00
4447c9a46e
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.
17 lines
463 B
CMake
17 lines
463 B
CMake
# SPDX-FileCopyrightText: 2022 Alexandre Bouvier <contact@amb.tf>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
find_package(PkgConfig QUIET)
|
|
pkg_search_module(LIBUSB QUIET IMPORTED_TARGET libusb-1.0)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(libusb
|
|
REQUIRED_VARS LIBUSB_LINK_LIBRARIES
|
|
VERSION_VAR LIBUSB_VERSION
|
|
)
|
|
|
|
if (libusb_FOUND AND NOT TARGET libusb::usb)
|
|
add_library(libusb::usb ALIAS PkgConfig::LIBUSB)
|
|
endif()
|