mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
064625ef58
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.
19 lines
481 B
CMake
19 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
|
|
)
|