]> git.proxmox.com Git - libgit2.git/commitdiff
Explain how to build universal OSX binaries
authorCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 11 Oct 2011 16:12:36 +0000 (18:12 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 11 Oct 2011 16:14:13 +0000 (18:14 +0200)
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
README.md

index b5c76a6be697f3efc1b704abf5bf281f05e7b992..82517bc484568ba6cb9ae42c6f301fda359a8aac 100644 (file)
--- a/README.md
+++ b/README.md
@@ -55,6 +55,10 @@ To install the library you can specify the install prefix by setting:
        $ cmake .. -DCMAKE_INSTALL_PREFIX=/install/prefix
        $ cmake --build . --target install
 
+If you want to build a universal binary for Mac OS X, CMake sets it
+all up for you if you use `-DCMAKE_OSX_ARCHITECTURES="i386;x86_64"`
+when configuring.
+
 For more advanced use or questions about CMake please read <http://www.cmake.org/Wiki/CMake_FAQ>.
 
 The following CMake variables are declared: