From 24eee74937aae7629343d87722fbc9172a040512 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 17 May 2020 09:06:36 +0100 Subject: [PATCH] CMake: support using system-wide zstd library CMake does not have native support for zstd yet. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9288ca0321..25e06802ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -608,7 +608,7 @@ else() add_subdirectory(Externals/liblzma) endif() -find_package(zstd) +pkg_search_module(ZSTD QUIET libzstd) if(ZSTD_FOUND) message(STATUS "Using shared zstd") else()