Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:MaxxedSUSE:Emulators
ZArchive
use_pkgconfig_for_zstd.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use_pkgconfig_for_zstd.patch of Package ZArchive
Index: ZArchive-0.1.2+git20220908.d2c7177/cmake/Findzstd.cmake =================================================================== --- ZArchive-0.1.2+git20220908.d2c7177.orig/cmake/Findzstd.cmake +++ ZArchive-0.1.2+git20220908.d2c7177/cmake/Findzstd.cmake @@ -3,31 +3,18 @@ include(FindPackageHandleStandardArgs) -find_package(zstd CONFIG QUIET) -if (zstd_FOUND) - # Use upstream zstdConfig.cmake if possible - if (NOT TARGET zstd::zstd) - if (TARGET zstd::libzstd_static) - add_library(zstd::zstd ALIAS zstd::libzstd_static) - elseif (TARGET zstd::libzstd_shared) - add_library(zstd::zstd ALIAS zstd::libzstd_shared) - endif() - endif() - find_package_handle_standard_args(zstd CONFIG_MODE) -else() - # Fallback to pkg-config otherwise - find_package(PkgConfig) - if (PKG_CONFIG_FOUND) - pkg_search_module(libzstd IMPORTED_TARGET GLOBAL libzstd) - if (libzstd_FOUND) - add_library(zstd::zstd ALIAS PkgConfig::libzstd) - endif() - endif() - - find_package_handle_standard_args(zstd - REQUIRED_VARS - libzstd_LINK_LIBRARIES - libzstd_FOUND - VERSION_VAR libzstd_VERSION - ) +# Fallback to pkg-config otherwise +find_package(PkgConfig) +if (PKG_CONFIG_FOUND) + pkg_search_module(libzstd IMPORTED_TARGET GLOBAL libzstd) + if (libzstd_FOUND) + add_library(zstd::zstd ALIAS PkgConfig::libzstd) + endif() endif() + +find_package_handle_standard_args(zstd + REQUIRED_VARS + libzstd_LINK_LIBRARIES + libzstd_FOUND + VERSION_VAR libzstd_VERSION +)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor