From: Treata11 Date: Wed, 22 Jan 2025 19:24:03 +0000 (+0330) Subject: Instructions for Apple Framework builds X-Git-Tag: v1.5.7^2~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4259%2Fhead;p=thirdparty%2Fzstd.git Instructions for Apple Framework builds --- diff --git a/build/cmake/README.md b/build/cmake/README.md index 4c9d3a08b..6baa5974b 100644 --- a/build/cmake/README.md +++ b/build/cmake/README.md @@ -41,6 +41,16 @@ cmake -DZSTD_BUILD_TESTS=ON -DZSTD_LEGACY_SUPPORT=OFF .. make ``` +**Apple Frameworks** +It's generally recommended to have CMake with versions higher than 3.14 for [iOS-derived platforms](https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#id27). +```sh +cmake -S. -B build-cmake -DZSTD_FRAMEWORK=ON -DCMAKE_SYSTEM_NAME=iOS +``` +Or you can utilize [iOS-CMake](https://github.com/leetal/ios-cmake) toolchain for CMake versions lower than 3.14 +```sh +cmake -B build -G Xcode -DCMAKE_TOOLCHAIN_FILE= -DPLATFORM=OS64 -DZSTD_FRAMEWORK=ON +``` + ### how to use it with CMake FetchContent For all options available, you can see it on