CMake: support using system-wide zstd library

CMake does not have native support for zstd yet.
This commit is contained in:
Tillmann Karras 2020-05-17 09:06:36 +01:00
parent de5941d6f8
commit 24eee74937

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()