macOS: officially upgrade to 10.9 libraries from lib/darwin.
[blender.git] / build_files / cmake / platform / platform_apple_xcode.cmake
index c380bfb9bf922dde56f7d38d0728b2d32ebcd4c6..8bb08b5a29fbe2cda363a7bb939b8127192e2f33 100644 (file)
@@ -101,21 +101,14 @@ if(OSX_SYSTEM MATCHES 10.9)
        set(CMAKE_FIND_ROOT_PATH ${CMAKE_OSX_SYSROOT})
 endif()
 
-if(WITH_CXX11)
-       # 10.9 is our min. target, if you use higher sdk, weak linking happens
-       if(CMAKE_OSX_DEPLOYMENT_TARGET)
-               if(${CMAKE_OSX_DEPLOYMENT_TARGET} VERSION_LESS 10.9)
-                       message(STATUS "Setting deployment target to 10.9, lower versions are incompatible with WITH_CXX11")
-                       set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "" FORCE)
-               endif()
-       else()
+# 10.9 is our min. target, if you use higher sdk, weak linking happens
+if(CMAKE_OSX_DEPLOYMENT_TARGET)
+       if(${CMAKE_OSX_DEPLOYMENT_TARGET} VERSION_LESS 10.9)
+               message(STATUS "Setting deployment target to 10.9, lower versions are incompatible with WITH_CXX11")
                set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "" FORCE)
        endif()
 else()
-       if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
-               # 10.6 is our min. target, if you use higher sdk, weak linking happens
-               set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6" CACHE STRING "" FORCE)
-       endif()
+       set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "" FORCE)
 endif()
 
 if(NOT ${CMAKE_GENERATOR} MATCHES "Xcode")