From 889b0f13ce7ebc1e27c047e8e4661d36ce0b8fce Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 23 Dec 2023 16:07:48 +0100 Subject: [PATCH] CMake: fix ios toolchain for cmake 3.28 --- CMake/toolchain/ios.toolchain.xcode.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/toolchain/ios.toolchain.xcode.cmake b/CMake/toolchain/ios.toolchain.xcode.cmake index c13b85226ed..67f59c885a2 100644 --- a/CMake/toolchain/ios.toolchain.xcode.cmake +++ b/CMake/toolchain/ios.toolchain.xcode.cmake @@ -46,7 +46,7 @@ set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment # Determine the cmake host system version so we know where to find the iOS SDKs find_program (CMAKE_UNAME uname /bin /usr/bin /usr/local/bin) if (CMAKE_UNAME) - exec_program(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION) + execute_process(COMMAND uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION) string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VERSION}") endif ()