Externals: Add zstd

I had to rename Source/Common/Compiler.h because the VS build
confuses it with Externals/zstd/lib/common/compiler.h otherwise.
This commit is contained in:
JosJuice
2020-05-03 19:42:12 +02:00
parent 6705fd808b
commit 2137fb7813
71 changed files with 28002 additions and 10 deletions

View File

@ -608,6 +608,15 @@ else()
add_subdirectory(Externals/liblzma)
endif()
find_package(zstd)
if(ZSTD_FOUND)
message(STATUS "Using shared zstd")
else()
check_vendoring_approved(zstd)
message(STATUS "Shared zstd not found, falling back to the static library")
add_subdirectory(Externals/zstd)
endif()
find_package(ZLIB)
if(ZLIB_FOUND)
message(STATUS "Using shared zlib")