From 2d08ed684b0dcf915a06a77f5a2710ce6494d64a Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Sat, 17 May 2014 14:18:53 +0200 Subject: [PATCH] Removed unnecessary check in cmake regarding the deployment target * Setting CMAKE_OSX_DEPLOYMENT_TARGET to something implies setting CMAKE_OSX_SYSROOT too * The default values are enough for most users * If someone is trying to compile SFML with 10.6 SDK it will simply fail later anyway --- CMakeLists.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75b4f3d62..6ed43c48c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,9 +53,6 @@ sfml_set_option(SFML_OPENGL_ES ${OPENGL_ES} BOOL "TRUE to use an OpenGL ES imple # Mac OS X specific options if(SFML_OS_MACOSX) - # set default CMAKE_OSX_DEPLOYMENT_TARGET value to 10.7 - sfml_set_option(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" STRING "Minimum OS version to target for deployment (at runtime)") - # add an option to build frameworks instead of dylibs (release only) sfml_set_option(SFML_BUILD_FRAMEWORKS FALSE BOOL "TRUE to build SFML as frameworks libraries (release only), FALSE to build according to BUILD_SHARED_LIBS") @@ -147,12 +144,6 @@ if(SFML_OS_MACOSX) return() endif() endif() - - # make sure CMAKE_OSX_DEPLOYMENT_TARGET is >= 10.7 - if (CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS "10.7") - message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET (${CMAKE_OSX_DEPLOYMENT_TARGET}) should be 10.7 or better") - return() - endif() endif() if(SFML_OS_LINUX OR SFML_OS_FREEBSD)