mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-21 14:33:23 +02:00
With this patch I've deleted a few find modules that are now unused since the vcpkg transition, as the CMake code now forces CONFIG mode for Catch2, fmt and nlohmann_json. I've then simplified the lz4, opus, and zstd modules by exclusively using pkg-config. They were using it already, but were ignoring the result. Also, I believe that manually looking for libraries was required for Conan to work, and it is thus not needed anymore. Lastly, I believe that there is no platform that ships these system libs without pkg-config/pkgconf, so requiring it should be fine.
20 lines
481 B
CMake
20 lines
481 B
CMake
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
find_package(PkgConfig)
|
|
|
|
if (PKG_CONFIG_FOUND)
|
|
pkg_search_module(liblz4 IMPORTED_TARGET GLOBAL liblz4)
|
|
if (liblz4_FOUND)
|
|
add_library(lz4::lz4 ALIAS PkgConfig::liblz4)
|
|
endif()
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(lz4
|
|
REQUIRED_VARS
|
|
liblz4_LINK_LIBRARIES
|
|
liblz4_FOUND
|
|
VERSION_VAR liblz4_VERSION
|
|
)
|