diff options
author | lhofhansl <larsh@apache.org> | 2021-08-31 17:32:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 17:32:31 -0700 |
commit | d1624a552151bcb152b7abf63df6501b63458d78 (patch) | |
tree | e73a7b216f23962c06e591c4d0d1e5333d949b08 /cmake/Modules | |
parent | beac4a2c984706b636e7b1e03406e05c87435903 (diff) | |
download | minetest-d1624a552151bcb152b7abf63df6501b63458d78.tar.gz minetest-d1624a552151bcb152b7abf63df6501b63458d78.tar.bz2 minetest-d1624a552151bcb152b7abf63df6501b63458d78.zip |
Switch MapBlock compression to zstd (#10788)
* Add zstd support.
* Rearrange serialization order
* Compress entire mapblock
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/FindZstd.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/Modules/FindZstd.cmake b/cmake/Modules/FindZstd.cmake new file mode 100644 index 000000000..461e4d5a6 --- /dev/null +++ b/cmake/Modules/FindZstd.cmake @@ -0,0 +1,9 @@ +mark_as_advanced(ZSTD_LIBRARY ZSTD_INCLUDE_DIR) + +find_path(ZSTD_INCLUDE_DIR NAMES zstd.h) + +find_library(ZSTD_LIBRARY NAMES zstd) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Zstd DEFAULT_MSG ZSTD_LIBRARY ZSTD_INCLUDE_DIR) + |