From c92a8fd4b83bd873b0826b249ec72be7922277df Mon Sep 17 00:00:00 2001 From: Dave Page Date: Tue, 12 Jun 2012 10:49:16 +0100 Subject: [PATCH] Fix the path to the OS X 10.6 SDK --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0201bdd..6b45749 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,9 +18,9 @@ SET(CMAKE_FIND_LIBRARY_SUFFIXES ".lib") IF(APPLE) # Setup default values IF(NOT HAVE_CACHED_VALUES) - IF(EXISTS /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk) + IF(EXISTS /Developer/SDKs/MacOSX10.6.sdk) SET(CMAKE_OSX_ARCHITECTURES "i386" CACHE STRING "Build architectures for OSX" FORCE) - SET(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk" CACHE FILEPATH "isysroot used for universal binary support" FORCE) + SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk" CACHE FILEPATH "isysroot used for universal binary support" FORCE) ELSE() IF(EXISTS /Developer/SDKs/MacOSX10.5.sdk) SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE) @@ -33,7 +33,7 @@ IF(APPLE) MESSAGE(FATAL_ERROR "No supported SDK could be found!") ENDIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk) ENDIF(EXISTS /Developer/SDKs/MacOSX10.5.sdk) - ENDIF(EXISTS /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk) + ENDIF(EXISTS /Developer/SDKs/MacOSX10.6.sdk) ENDIF(NOT HAVE_CACHED_VALUES) # Target Tiger