SCons: Support compilation with 10.11 SK on OS X
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Oct 2015 09:48:04 +0000 (14:48 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Oct 2015 09:48:04 +0000 (14:48 +0500)
SConstruct

index b55cca403e9d1235fae732499ec9e3c8e2a6d607..ebd9cd1ec901bf1482af2ca0adf0246f2a3c9f24 100644 (file)
@@ -331,7 +331,10 @@ if env['OURPLATFORM']=='darwin':
     print B.bc.OKGREEN + "Available SDK's: \n" + B.bc.ENDC + MACOSX_SDK_CHECK.replace('\t', '')
 
     if env['MACOSX_SDK'] == '': # no set sdk, choosing best one found
-        if 'OS X 10.10' in MACOSX_SDK_CHECK:
+        if 'OS X 10.11' in MACOSX_SDK_CHECK:
+            env['MACOSX_DEPLOYMENT_TARGET'] = '10.6'
+            env['MACOSX_SDK']='/Developer/SDKs/MacOSX10.11.sdk'
+        elif 'OS X 10.10' in MACOSX_SDK_CHECK:
             env['MACOSX_DEPLOYMENT_TARGET'] = '10.6'
             env['MACOSX_SDK']='/Developer/SDKs/MacOSX10.10.sdk'
         elif 'OS X 10.9' in MACOSX_SDK_CHECK: