From 421001bdd73ed921ae46ee1f5e65f73c545944e4 Mon Sep 17 00:00:00 2001 From: deal Date: Thu, 20 Jan 2022 18:10:16 +0800 Subject: [PATCH] Update ios.mini.cmake --- cmake/ios.mini.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/ios.mini.cmake b/cmake/ios.mini.cmake index 8b2ad60cf1..4cd20f7b77 100644 --- a/cmake/ios.mini.cmake +++ b/cmake/ios.mini.cmake @@ -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")