Merge pull request #8817 from Tilka/cmake
CMake: support using system-wide zstd library
This commit is contained in:
commit
7cdd0e2430
|
@ -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()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
project(bzip2 C)
|
project(zstd C)
|
||||||
|
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
|
|
Loading…
Reference in New Issue