From: José Fonseca Date: Tue, 27 Sep 2011 13:13:56 +0000 (+0100) Subject: Build fat binaries with i386 and x86_64 architectures by default on Mac OS X. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=5971d6a409e88044672911d960b355a425db7479;p=apitrace Build fat binaries with i386 and x86_64 architectures by default on Mac OS X. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 21b46df..e31f753 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,12 +5,16 @@ project (apitrace) ############################################################################## # Options -# + +# On Mac OS X build fat binaries with i386 and x86_64 architectures by default. +if (APPLE AND NOT CMAKE_OSX_ARCHITECTURES) + set (CMAKE_OSX_ARCHITECTURES "i386;x86_64" CACHE STRING "Build architectures for OSX" FORCE) +endif () + # We use a cached string variable instead of the standard (boolean) OPTION # command so that we can default to auto-detecting optional depencies, while # still providing a mechanism to force/disable these optional dependencies, as # prescribed in http://www.gentoo.org/proj/en/qa/automagic.xml - set (ENABLE_GUI "AUTO" CACHE STRING "Enable Qt GUI.")