osx build: don't set deployment target
If a deployment target is set within CMakeLists.txt detection might fail if CMAKE_OSX_SYSROOT isn't set. In case no deployment target is specified the latest available SDK is used as deployment target and sysroot is set accordingly. An other deployment target can still be set with -DCMAKE_OSX_DEPLOYMENT_TARGET=10.x when running cmake for the first time or can be overwritten in cmake cache later on.
This commit is contained in:
parent
b647b5bfc9
commit
47b18ec841
@ -247,10 +247,6 @@ if(APPLE)
|
||||
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${FREERDP_IOS_EXTERNAL_SSL_PATH})
|
||||
set_property(GLOBAL PROPERTY XCODE_ATTRIBUTE_SKIP_INSTALL YES)
|
||||
else(IOS)
|
||||
if(NOT DEFINED CMAKE_OSX_DEPLOYMENT_TARGET OR CMAKE_OSX_DEPLOYMENT_TARGET MATCHES "")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7 CACHE STRING "OSX deployment target" FORCE)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED CMAKE_OSX_ARCHITECTURES)
|
||||
set(CMAKE_OSX_ARCHITECTURES i386 x86_64)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user