Commit: 02114a673787257dc93d151b8ea61844df9098e6
Author: Jens Verwiebe
Date: Wed Nov 20 00:38:51 2013 +0100
http://developer.blender.org/rB02114a673787257dc93d151b8ea61844df9098e6
OSX/Cmake: workaround for missing OpenGL headers, make sure sdk lookup
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3a4d65..5781558 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -378,7 +378,11 @@ if(APPLE)
set(CMAKE_XCODE_ATTRIBUTE_SDKROOT macosx${OSX_SYSTEM}) # to
silence sdk not found warning, just overrides CMAKE_OSX_SYSROOT
endif()
endif()
-
+
+ if(OSX_SYSTEM MATCHES 10.9)
+ set(CMAKE_FIND_ROOT_PATH ${CMAKE_OSX_SYSROOT}) # make sure syslibs and
headers are looked up in sdk ( expecially for 10.9 openGL atm. )
+ endif()
+
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6" CACHE STRING "" FORCE) #
10.6 is our min. target, if you use higher sdk, weak linking happens
endif()
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs