Caching CMAKE_OSX_DEPLOYMENT_TARGET variable to prevent error on subsequent compilations

This commit is contained in:
Benoît LeBlanc 2013-09-10 11:45:25 -04:00
parent f0e4b7ea21
commit 525a86280f

View File

@ -20,10 +20,6 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
if(APPLE AND NOT IOS)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.6)
endif()
project(FreeRDP C) project(FreeRDP C)
if(NOT DEFINED VENDOR) if(NOT DEFINED VENDOR)
@ -237,7 +233,9 @@ if(APPLE)
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${FREERDP_IOS_EXTERNAL_SSL_PATH}) set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${FREERDP_IOS_EXTERNAL_SSL_PATH})
set_property(GLOBAL PROPERTY XCODE_ATTRIBUTE_SKIP_INSTALL YES) set_property(GLOBAL PROPERTY XCODE_ATTRIBUTE_SKIP_INSTALL YES)
else() else()
# set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6") if(NOT DEFINED VENDOR)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6" CACHE STRING "OSX deployment target")
endif()
if(NOT DEFINED CMAKE_OSX_ARCHITECTURES) if(NOT DEFINED CMAKE_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES i386 x86_64) set(CMAKE_OSX_ARCHITECTURES i386 x86_64)