Instructions for Apple Framework builds
This commit is contained in:
@@ -41,6 +41,16 @@ cmake -DZSTD_BUILD_TESTS=ON -DZSTD_LEGACY_SUPPORT=OFF ..
|
|||||||
make
|
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
|
### 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>
|
For all options available, you can see it on <https://github.com/facebook/zstd/blob/dev/build/cmake/lib/CMakeLists.txt>
|
||||||
|
|||||||
Reference in New Issue
Block a user