diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2013-11-20 03:38:51 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2013-11-20 03:39:03 +0400 |
commit | 02114a673787257dc93d151b8ea61844df9098e6 (patch) | |
tree | 4dfaa8e626c05638f1c59231e16b8cb249350bc6 /CMakeLists.txt | |
parent | 447d2774989cd2df249e1d48cf44ef7e1a109a36 (diff) |
OSX/Cmake: workaround for missing OpenGL headers, make sure sdk lookup
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d3a4d65e0ce..5781558a61b 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() |