Commit ba716f5e authored by jehan's avatar jehan

compute min target based on host version of MACOSX instead of version of available SDK

parent a092a90b
......@@ -51,6 +51,11 @@ set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=NO")
# Global configuration
set(LINPHONE_BUILDER_HOST "")
if(APPLE)
#if (NOT CMAKE_OSX_DEPLOYMENT_TARGET) #is it still usefull ?
#without instruction chose to target current machine
# execute_process(COMMAND sw_vers -productVersion COMMAND awk -F \\. "{printf \"%i.%i\",$1,$2}" RESULT_VARIABLE xcrun_sdk_version OUTPUT_VARIABLE CMAKE_OSX_DEPLOYMENT_TARGET OUTPUT_STRIP_TRAILING_WHITESPACE)
#endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(LINPHONE_BUILDER_HOST "x86_64-apple-darwin")
......
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