CMakeLists.txt
changeset 4845 9a0f5377c529
parent 4829 1d555e738a3a
parent 4756 9f20a38a385a
child 4903 21dd1def5aaf
equal deleted inserted replaced
4843:673f74c89687 4845:9a0f5377c529
    75 		set(FATAL "Hedgewars is not supported for pre-10.4 systems")
    75 		set(FATAL "Hedgewars is not supported for pre-10.4 systems")
    76 	endif()
    76 	endif()
    77 
    77 
    78 	set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400")
    78 	set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400")
    79 
    79 
    80 
       
    81 	#create universal binaries only when it's time to bundle the application, also build server
    80 	#create universal binaries only when it's time to bundle the application, also build server
    82 	IF(BUNDLE)
    81 	IF(BUNDLE)
    83 		set(WITH_SERVER true)
    82 		set(WITH_SERVER true)
    84 		if(NOT minimum_macosx MATCHES "10.6")
    83 		if(NOT minimum_macosx MATCHES "10.6")
    85 			set(CMAKE_C_COMPILER "gcc-4.0")
    84 			set(CMAKE_C_COMPILER "gcc-4.0")
    86 			set(CMAKE_CXX_COMPILER "g++-4.0")
    85 			set(CMAKE_CXX_COMPILER "g++-4.0")
    87 		else()
    86 		else()
    88 			if(current_macosx_version MATCHES "10.6")
    87 			if(current_macosx_version MATCHES "10.6")
    89 				set(CMAKE_OSX_ARCHITECTURES "x86_64")
    88 				if(MACAPPSTORE)
       
    89 					set(CMAKE_OSX_ARCHITECTURES "x86_64;i386")
       
    90 				else()
       
    91 					set(CMAKE_OSX_ARCHITECTURES "x86_64")
       
    92 				endif()
    90 			endif()
    93 			endif()
    91 		endif()
    94 		endif()
    92 	ELSE()
    95 	ELSE()
    93 		if(current_macosx_version MATCHES "10.6")
    96 		if(current_macosx_version MATCHES "10.6")
    94 			set(CMAKE_OSX_ARCHITECTURES "x86_64")
    97 			set(CMAKE_OSX_ARCHITECTURES "x86_64")