mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-16 16:40:55 +00:00
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:
parent
5cd4484f8b
commit
401785786a
1 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue