From 525a86280f77700da1426925475ffbf21fa369c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoi=CC=82t=20LeBlanc?= Date: Tue, 10 Sep 2013 11:45:25 -0400 Subject: [PATCH] Caching CMAKE_OSX_DEPLOYMENT_TARGET variable to prevent error on subsequent compilations --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af4a81f50..07ac6424a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,10 +20,6 @@ cmake_minimum_required(VERSION 2.8) -if(APPLE AND NOT IOS) - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.6) -endif() - project(FreeRDP C) 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_property(GLOBAL PROPERTY XCODE_ATTRIBUTE_SKIP_INSTALL YES) 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) set(CMAKE_OSX_ARCHITECTURES i386 x86_64)