]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Instructions for Apple Framework builds 4259/head
authorTreata11 <treata11@yahoo.com>
Wed, 22 Jan 2025 19:24:03 +0000 (22:54 +0330)
committerTreata11 <treata11@yahoo.com>
Wed, 22 Jan 2025 19:24:03 +0000 (22:54 +0330)
build/cmake/README.md

index 4c9d3a08b688a6d1075c8e60edeb1ef7b6ca18e4..6baa5974b2837f5fca8af231dd9477aaf0aae0c1 100644 (file)
@@ -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=<Path To ios.toolchain.cmake> -DPLATFORM=OS64 -DZSTD_FRAMEWORK=ON
+```
+
 ### how to use it with CMake FetchContent
 
 For all options available, you can see it on <https://github.com/facebook/zstd/blob/dev/build/cmake/lib/CMakeLists.txt>