From 5971d6a409e88044672911d960b355a425db7479 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 27 Sep 2011 14:13:56 +0100 Subject: [PATCH] Build fat binaries with i386 and x86_64 architectures by default on Mac OS X. --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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.") -- 2.43.0