cleanup command that looks for SDK

This commit is contained in:
Stephen Birarda 2015-02-25 13:50:59 -08:00
parent d24287f627
commit 994c0386d3

View file

@ -96,7 +96,12 @@ if (APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.8)
# find the 10.9 SDK path
find_path(_OSX_DESIRED_SDK_PATH NAME MacOSX10.9.sdk HINTS /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ ${OSX_SDK_PATH})
find_path(
_OSX_DESIRED_SDK_PATH
NAME MacOSX10.9.sdk
HINTS ${OSX_SDK_PATH}
PATHS /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
)
if (NOT _OSX_DESIRED_SDK_PATH)
message(FATAL_ERROR "Could not find OS X 10.9 SDK. Please pass OSX_SDK_PATH to CMake to point us to your SDKs directory.")