Skip to content

Commit

Permalink
Explicitly set minimum OSX version, and detect SDK path.
Browse files Browse the repository at this point in the history
This fixes situations where XCode is installed with a newer SDK than the current OS. (#3198)
  • Loading branch information
danpat committed Nov 8, 2016
1 parent 59c60f7 commit fbeacde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ endif()

# Configuring other platform dependencies
if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.10")
execute_process(COMMAND xcrun --sdk macosx --show-sdk-path OUTPUT_VARIABLE CMAKE_OSX_SYSROOT OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
message(STATUS "Set Architecture to x64 on OS X")
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
Expand Down

0 comments on commit fbeacde

Please sign in to comment.