@@ -167,28 +167,22 @@ Currently, the third party libraries that can be provided this way are:
167167| ZLIB |
168168
169169#### Building with CMake for iOS
170- The Firebase C++ SDK comes with a CMake config file to build the library for
171- iOS platforms, [ cmake/toolchains/ios.cmake] ( /cmake/toolchains/ios.cmake ) . In
172- order to build with it, when running the CMake configuration pass it in with
173- the CMAKE_TOOLCHAIN_FILE definition. For example, to build the Auth
174- library for iOS, you could run the following commands:
170+ Starting with CMake 3.14, iOS is supported natively by CMake. To build for iOS, set the ` CMAKE_SYSTEM_NAME ` to ` iOS ` .
171+ For example, to build the Auth library for iOS, you could run the following commands:
175172
176173``` bash
177174mkdir ios_build && cd ios_build
178- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/ios.cmake ..
175+ cmake -DCMAKE_SYSTEM_NAME=iOS ..
179176cmake --build . --target firebase_auth
180177```
181178
182179#### Building with CMake for tvOS
183- The Firebase C++ SDK comes with a CMake config file to build the library for
184- tvOS platforms, [ cmake/toolchains/apple.toolchain.cmake] ( /cmake/toolchains/apple.toolchain.cmake ) . In
185- order to build with it, when running the CMake configuration pass it in with
186- the CMAKE_TOOLCHAIN_FILE definition. For example, to build the Auth
187- library for tvOS, you could run the following commands:
180+ Starting with CMake 3.14, tvOS is supported natively by CMake. To build for tvOS, set the ` CMAKE_SYSTEM_NAME ` to ` tvOS ` .
181+ For example, to build the Auth library for tvOS, you could run the following commands:
188182
189183``` bash
190184mkdir tvos_build && cd tvos_build
191- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/apple.toolchain.cmake -DPLATFORM=TVOS ..
185+ cmake -DCMAKE_SYSTEM_NAME=tvOS ..
192186cmake --build . --target firebase_auth
193187```
194188
0 commit comments