From 653812a79c9907c10a3e4d9230f4ec59e4bb9731 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 4 Mar 2013 11:34:38 -0800 Subject: [PATCH] explicitly define OS X base SDK and target --- CMakeLists.txt | 5 +++++ interface/CMakeLists.txt | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e227c95f6..89e63a65e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8) project(hifi) +if(APPLE) + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7) + set(CMAKE_OSX_SYSROOT macosx10.8) +endif() + add_subdirectory(space) add_subdirectory(domain) add_subdirectory(mixer) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 0685aca6cd..025f9c3674 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -12,6 +12,8 @@ if (APPLE) # link in required OS X frameworks and include the right GL headers set(CMAKE_EXE_LINKER_FLAGS "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices -framework Carbon") set(GL_HEADERS "#include \n#include ") + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7) + set(CMAKE_OSX_SYSROOT macosx10.8) else (APPLE) # include the right GL headers for UNIX set(GL_HEADERS "#include \n#include \n#include ")