diff --git a/CMakeLists.txt b/CMakeLists.txt index ff54abfc2..0e989c3db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,8 +117,8 @@ endif() include_directories(${STK_SOURCE_DIR}) if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") elseif(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # Enable multi-processor compilation (faster) endif() @@ -370,7 +370,7 @@ if(APPLE) # unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases : # the mac I use to make STK releases does have other installs of vorbis/ogg/etc. which aren't compatible with STK, so letting # CMake pick the library it wants essentially means I can't build. - set_target_properties(supertuxkart PROPERTIES LINK_FLAGS "-arch i386 -F/Library/Frameworks -framework OpenAL -framework Ogg -framework Vorbis") + set_target_properties(supertuxkart PROPERTIES LINK_FLAGS "-arch x86_64 -F/Library/Frameworks -framework OpenAL -framework Ogg -framework Vorbis") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/Library/Frameworks/OpenAL.framework/Versions/A/Headers") endif() diff --git a/lib/bullet/CMakeLists.txt b/lib/bullet/CMakeLists.txt index 1d02ea11f..ac6a62ee4 100644 --- a/lib/bullet/CMakeLists.txt +++ b/lib/bullet/CMakeLists.txt @@ -3,8 +3,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/) if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") endif() # libbulletmath diff --git a/lib/enet/CMakeLists.txt b/lib/enet/CMakeLists.txt index fd1a0dd22..dd79ae273 100644 --- a/lib/enet/CMakeLists.txt +++ b/lib/enet/CMakeLists.txt @@ -3,8 +3,8 @@ include_directories("include") if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") endif() add_definitions(-DHAS_SOCKLEN_T) diff --git a/lib/glew/CMakeLists.txt b/lib/glew/CMakeLists.txt index ebe8edb64..a2bb342de 100644 --- a/lib/glew/CMakeLists.txt +++ b/lib/glew/CMakeLists.txt @@ -3,8 +3,8 @@ include_directories("include") if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") endif() find_package(OpenGL REQUIRED) diff --git a/lib/irrlicht/CMakeLists.txt b/lib/irrlicht/CMakeLists.txt index 3006513e4..46d54008c 100644 --- a/lib/irrlicht/CMakeLists.txt +++ b/lib/irrlicht/CMakeLists.txt @@ -13,8 +13,8 @@ include_directories(${OPENGL_INCLUDE_DIR}) if(APPLE) include_directories("${CMAKE_CURRENT_SOURCE_DIR}/source/Irrlicht/MacOSX" "${CMAKE_CURRENT_SOURCE_DIR}/source/Irrlicht") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") endif() add_definitions(-DNDEBUG=1 -DIRRLICHT_EXPORTS=1 -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES) diff --git a/lib/jpeglib/CMakeLists.txt b/lib/jpeglib/CMakeLists.txt index c3d02d78f..0fcf34997 100644 --- a/lib/jpeglib/CMakeLists.txt +++ b/lib/jpeglib/CMakeLists.txt @@ -1,8 +1,8 @@ cmake_minimum_required(VERSION 2.4.4) if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") endif() SET(JPEG_SRCS diff --git a/lib/libpng/CMakeLists.txt b/lib/libpng/CMakeLists.txt index 2165db6a2..b8d476b12 100644 --- a/lib/libpng/CMakeLists.txt +++ b/lib/libpng/CMakeLists.txt @@ -39,8 +39,8 @@ set(PNGLIB_NAME libpng${PNGLIB_MAJOR}${PNGLIB_MINOR}) set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_RELEASE}) if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") endif() # Needed packages. Since WIN32 (except mingw) uses the included zlib diff --git a/lib/wiiuse/CMakeLists.txt b/lib/wiiuse/CMakeLists.txt index ef6a8c788..49fcd5278 100644 --- a/lib/wiiuse/CMakeLists.txt +++ b/lib/wiiuse/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.1) # libbluetooth is required on Unix platforms -if(UNIX) +if(UNIX AND (NOT APPLE)) include(FindPkgConfig) pkg_check_modules(BLUETOOTH bluez) if(NOT BLUETOOTH_FOUND) @@ -29,8 +29,8 @@ set(WIIUSE_SOURCES ) if(APPLE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks") set(WIIUSE_SOURCES ${WIIUSE_SOURCES} os_mac/os_mac_find.m os_mac/os_mac_interface.m @@ -83,4 +83,4 @@ if(MSVC) endif() elseif(MINGW) target_link_libraries(wiiuse hid setupapi) -endif() +endif() \ No newline at end of file