mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Revert "fix Snow Leopard compatibility"
This change broke compilation on some OSX 10.7 configurations. This reverts commit b2e2e49fe49715a3dd77f138b8365046550d99b2.
This commit is contained in:
parent
16060290c2
commit
764cd455b3
@ -6,8 +6,12 @@ cmake_minimum_required(VERSION 2.6)
|
|||||||
# Update compiler before calling project()
|
# Update compiler before calling project()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# Use clang compiler
|
# Use clang compiler
|
||||||
set(CMAKE_C_COMPILER "clang")
|
set(CMAKE_C_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang")
|
||||||
set(CMAKE_CXX_COMPILER "clang++")
|
set(CMAKE_CXX_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++")
|
||||||
|
if (NOT EXISTS "${CMAKE_CXX_COMPILER}")
|
||||||
|
set(CMAKE_C_COMPILER "clang")
|
||||||
|
set(CMAKE_CXX_COMPILER "clang++")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
project(dolphin-emu)
|
project(dolphin-emu)
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeTests)
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeTests)
|
||||||
@ -122,6 +126,10 @@ if(UNIX AND NOT APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
# Ignore MacPorts and Fink and any other locally installed packages that
|
||||||
|
# might prevent building a distributable binary.
|
||||||
|
set(CMAKE_SYSTEM_PREFIX_PATH /usr)
|
||||||
|
set(ENV{PATH} /usr/bin:/bin:/usr/sbin:/sbin)
|
||||||
|
|
||||||
# Some of our code contains Objective C constructs.
|
# Some of our code contains Objective C constructs.
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -x objective-c")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -x objective-c")
|
||||||
@ -136,7 +144,7 @@ if(APPLE)
|
|||||||
# This is inserted into the Info.plist as well.
|
# This is inserted into the Info.plist as well.
|
||||||
# Note that the SDK determines the maximum version of which optional
|
# Note that the SDK determines the maximum version of which optional
|
||||||
# features can be used, not the minimum required version to run.
|
# features can be used, not the minimum required version to run.
|
||||||
set(OSX_MIN_VERSION "10.6")
|
set(OSX_MIN_VERSION "10.5.4")
|
||||||
set(TARGET_FLAGS "${TARGET_FLAGS} -mmacosx-version-min=${OSX_MIN_VERSION}")
|
set(TARGET_FLAGS "${TARGET_FLAGS} -mmacosx-version-min=${OSX_MIN_VERSION}")
|
||||||
set(SYSROOT_LEGACY_PATH "/Developer/SDKs/MacOSX10.6.sdk")
|
set(SYSROOT_LEGACY_PATH "/Developer/SDKs/MacOSX10.6.sdk")
|
||||||
set(SYSROOT_PATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk")
|
set(SYSROOT_PATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk")
|
||||||
@ -145,9 +153,9 @@ if(APPLE)
|
|||||||
elseif(EXISTS "${SYSROOT_LEGACY_PATH}/")
|
elseif(EXISTS "${SYSROOT_LEGACY_PATH}/")
|
||||||
set(TARGET_SYSROOT ${SYSROOT_LEGACY_PATH})
|
set(TARGET_SYSROOT ${SYSROOT_LEGACY_PATH})
|
||||||
endif()
|
endif()
|
||||||
if(TARGET_SYSROOT)
|
if(${TARGET_SYSROOT})
|
||||||
set(TARGET_FLAGS "${TARGET_FLAGS} -isysroot ${TARGET_SYSROOT}")
|
set(TARGET_FLAGS "${TARGET_FLAGS} -isysroot ${TARGET_SYSROOT}")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=${OSX_MIN_VERSION} -Wl,-syslibroot,${TARGET_SYSROOT}")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-syslibroot,${TARGET_SYSROOT}")
|
||||||
endif()
|
endif()
|
||||||
# Do not warn about frameworks that are not available on all architectures.
|
# Do not warn about frameworks that are not available on all architectures.
|
||||||
# This avoids a warning when linking with QuickTime.
|
# This avoids a warning when linking with QuickTime.
|
||||||
@ -480,7 +488,7 @@ endif()
|
|||||||
option(DISABLE_WX "Disable wxWidgets (use CLI interface)" OFF)
|
option(DISABLE_WX "Disable wxWidgets (use CLI interface)" OFF)
|
||||||
if(NOT DISABLE_WX)
|
if(NOT DISABLE_WX)
|
||||||
include(FindwxWidgets OPTIONAL)
|
include(FindwxWidgets OPTIONAL)
|
||||||
FIND_PACKAGE(wxWidgets COMPONENTS core aui adv gl)
|
FIND_PACKAGE(wxWidgets COMPONENTS core aui adv)
|
||||||
|
|
||||||
if(wxWidgets_FOUND)
|
if(wxWidgets_FOUND)
|
||||||
EXECUTE_PROCESS(
|
EXECUTE_PROCESS(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user