Commit ebb7eb47 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

config-desktop.cmake: automatically detect CMAKE_OSX_DEPLOYMENT_TARGET if not set

parent 6c3e252d
......@@ -52,7 +52,7 @@ set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=NO")
set(LINPHONE_BUILDER_HOST "")
if(APPLE)
if (NOT CMAKE_OSX_DEPLOYMENT_TARGET)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6")
execute_process(COMMAND xcrun --sdk macosx --show-sdk-version RESULT_VARIABLE xcrun_sdk_version OUTPUT_VARIABLE CMAKE_OSX_DEPLOYMENT_TARGET OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment