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

config-desktop.cmake: actually we should not set CMAKE_OSX_DEPLOYMENT_TARGET...

config-desktop.cmake: actually we should not set CMAKE_OSX_DEPLOYMENT_TARGET at all - cmake will set it automatiaclly
parent 3496824d
......@@ -51,10 +51,6 @@ set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=NO")
# Global configuration
set(LINPHONE_BUILDER_HOST "")
if(APPLE)
if (NOT CMAKE_OSX_DEPLOYMENT_TARGET)
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)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(LINPHONE_BUILDER_HOST "x86_64-apple-darwin")
......@@ -62,9 +58,9 @@ if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "i386")
set(LINPHONE_BUILDER_HOST "i686-apple-darwin")
endif()
set(LINPHONE_BUILDER_CPPFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_OBJCFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_LDFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_CPPFLAGS "-arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_OBJCFLAGS "-arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_LDFLAGS "-arch ${CMAKE_OSX_ARCHITECTURES}")
set(CMAKE_MACOSX_RPATH 1)
endif()
if(WIN32)
......
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