Merge pull request #8817 from Tilka/cmake

CMake: support using system-wide zstd library
This commit is contained in:
Markus Wick 2020-06-16 22:55:46 +02:00 committed by GitHub
commit 7cdd0e2430
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -608,7 +608,7 @@ else()
add_subdirectory(Externals/liblzma) add_subdirectory(Externals/liblzma)
endif() endif()
find_package(zstd) pkg_search_module(ZSTD QUIET libzstd)
if(ZSTD_FOUND) if(ZSTD_FOUND)
message(STATUS "Using shared zstd") message(STATUS "Using shared zstd")
else() else()

View file

@ -1,4 +1,4 @@
project(bzip2 C) project(zstd C)
include(CheckTypeSize) include(CheckTypeSize)
include(CheckFunctionExists) include(CheckFunctionExists)