提交 b13c78a5 编写于 作者: M Megvii Engine Team

fix(ios): fix cmake ios cross build

GitOrigin-RevId: 64e74594cec19a1ab41c769e1b76585b70de1e6d
上级 cfc430b8
......@@ -144,7 +144,7 @@ if(${MGE_ARCH} STREQUAL "AUTO")
endif()
endif()
if(${MGE_ARCH} STREQUAL "x86_64" OR ${MGE_ARCH} STREQUAL "i386" OR ${MGE_ARCH} STREQUAL "armv7" OR ${MGE_ARCH} STREQUAL "aarch64")
if((${MGE_ARCH} STREQUAL "x86_64" OR ${MGE_ARCH} STREQUAL "i386" OR ${MGE_ARCH} STREQUAL "armv7" OR ${MGE_ARCH} STREQUAL "aarch64") AND NOT APPLE)
option(MGE_ENABLE_CPUINFO "Build cpuinfo library for check runtime." ON)
if(MGE_ENABLE_CPUINFO)
message("-- Enable cpuinfo runtime check and little kernel optimize.")
......
......@@ -226,8 +226,8 @@ if (NOT DEFINED IOS_DEPLOYMENT_TARGET)
set(IOS_DEPLOYMENT_TARGET "2.0"
CACHE STRING "Minimum iOS version to build for." )
else()
# Unless specified, SDK version 8.0 is used by default as minimum target version (iOS, tvOS).
set(IOS_DEPLOYMENT_TARGET "8.0"
# Unless specified, SDK version 10.0 is used by default as minimum target version (iOS, tvOS).
set(IOS_DEPLOYMENT_TARGET "10.0"
CACHE STRING "Minimum iOS version to build for." )
endif()
message(STATUS "Using the default min-version since IOS_DEPLOYMENT_TARGET not provided!")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册