running CMAKE_TRY_COMPILE shows error armv7 is deprecated

I am trying to use cmake to generate xcode project but fail and get error as below, it is said that the cmake project CMAKE_TRY_COMPILE tries to use armv7 architecture but armv7 is deprecated since xcode14 doesn’t support armv7, how can I disable CMAKE_TRY_COMPILE compile armv7 architecture?
ios.toolchain.cmake of mine: GitHub - gerstrong/ios-cmake: A CMake toolchain file for iOS, watchOS and tvOS C/C++/Obj-C++ development