Moved setting CMAKE_OSX_DEPLOYMENT_TARGET at beginning of script file, otherwise the compilation process fails.

This commit is contained in:
Benoît LeBlanc 2013-09-09 14:12:01 -04:00
parent 2c8bef26de
commit f1ae70fc74

View File

@ -20,6 +20,10 @@
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)
set(CMAKE_COLOR_MAKEFILE ON) set(CMAKE_COLOR_MAKEFILE ON)
@ -229,7 +233,7 @@ 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) # set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6")
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)