File tree 1 file changed +18
-5
lines changed 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Table of Contents
47
47
* [ Installation] ( #installation )
48
48
* [ Advanced Usage] ( #advanced-usage )
49
49
* [ Compiler and linker options] ( #compiler-and-linker-options )
50
- * [ MacOS X ] ( #macos-x )
50
+ * [ macOS ] ( #macos )
51
51
* [ Android] ( #android )
52
52
* [ MinGW] ( #mingw )
53
53
* [ Language Bindings] ( #language-bindings )
@@ -309,12 +309,25 @@ Tell CMake where to find those specific libraries
309
309
- ` LINK_WITH_STATIC_LIBRARIES ` : Link only with static versions of
310
310
system libraries
311
311
312
- MacOS X
312
+ macOS
313
313
-------
314
314
315
- If you want to build a universal binary for Mac OS X, CMake sets it
316
- all up for you if you use ` -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" `
317
- when configuring.
315
+ If you'd like to work with Xcode, you can generate an Xcode project with "-G Xcode".
316
+
317
+ # Create and set up a build directory
318
+ $ mkdir build && cd build
319
+ $ cmake -G Xcode ..
320
+
321
+ > [ !TIP]
322
+ > Universal Binary:
323
+ >
324
+ > If you want to build a universal binary for macOS 11.0+, CMake sets it
325
+ > all up for you if you use ` -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" `
326
+ > when configuring.
327
+ >
328
+ > [ Deprecated] If you want to build a universal binary for Mac OS X
329
+ > (10.4.4 ~ 10.6), CMake sets it all up for you if you use
330
+ > ` -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" ` when configuring.
318
331
319
332
Android
320
333
-------
You can’t perform that action at this time.
0 commit comments