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() diff --git a/Externals/zstd/CMakeLists.txt b/Externals/zstd/CMakeLists.txt index 049b66ca32..7d9cb1baaf 100644 --- a/Externals/zstd/CMakeLists.txt +++ b/Externals/zstd/CMakeLists.txt @@ -1,4 +1,4 @@ -project(bzip2 C) +project(zstd C) include(CheckTypeSize) include(CheckFunctionExists)