add 32 bit version when building for macappstore 0.9.15
authorkoda
Mon, 17 Jan 2011 08:37:43 +0100
branch0.9.15
changeset 4756 9f20a38a385a
parent 4753 449e48d2f4af
child 4759 4fa0c3da81f8
child 4845 9a0f5377c529
add 32 bit version when building for macappstore
CMakeLists.txt
--- a/CMakeLists.txt	Sat Jan 15 21:59:22 2011 +0100
+++ b/CMakeLists.txt	Mon Jan 17 08:37:43 2011 +0100
@@ -77,7 +77,6 @@
 
 	set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400")
 
-
 	#create universal binaries only when it's time to bundle the application, also build server
 	IF(BUNDLE)
 		set(WITH_SERVER true)
@@ -86,7 +85,11 @@
 			set(CMAKE_CXX_COMPILER "g++-4.0")
 		else()
 			if(current_macosx_version MATCHES "10.6")
-				set(CMAKE_OSX_ARCHITECTURES "x86_64")
+				if(MACAPPSTORE)
+					set(CMAKE_OSX_ARCHITECTURES "x86_64;i386")
+				else()
+					set(CMAKE_OSX_ARCHITECTURES "x86_64")
+				endif()
 			endif()
 		endif()
 	ELSE()