Enable building the updater with newer SDKs on Mac

* Remove the CMAKE_OSX_DEPLOYMENT_TARGET setting and just
   rely on the -mmacosx-min-version argument.

 * Avoid requiring a specific OS X SDK version - just use the
   default one.
This commit is contained in:
Robert Knight 2013-08-29 15:25:04 +01:00
parent 5cd4484f8b
commit 401785786a

View file

@ -37,14 +37,8 @@ if (APPLE)
set(CMAKE_OSX_ARCHITECTURES i386;x86_64)
# Build the updater so that it works on OS X 10.5 and above.
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
# Set the SDK which the updater is built against.
# The available SDK versions are those which exist in /Developer/SDKs/
set(CMAKE_OSX_SDK 10.7)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${CMAKE_OSX_SDK}.sdk")
set(MIN_OSX_VERSION 10.5)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${MIN_OSX_VERSION}")
endif()
add_subdirectory(src)