Update ios.mini.cmake

This commit is contained in:
deal 2022-01-20 18:10:16 +08:00 committed by GitHub
parent bca3a82eea
commit 421001bdd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ if("${CMAKE_OSX_ARCHITECTURES}" MATCHES "x86_64")
endif()
# Sets CMAKE_SYSTEM_PROCESSOR for iphoneos and iphonesimulator
if("${CMAKE_OSX_SYSROOT}" MATCHES "iphonesimulator")
string(TOLOWER "${CMAKE_OSX_SYSROOT}" lowercase_CMAKE_OSX_SYSROOT)
if("${lowercase_CMAKE_OSX_SYSROOT}" MATCHES "iphonesimulator")
if("${CMAKE_OSX_ARCHITECTURES}" MATCHES "i386")
set(CMAKE_SYSTEM_PROCESSOR i386)
elseif("${CMAKE_OSX_ARCHITECTURES}" MATCHES "x86_64")