Skip to content

Commit

Permalink
CMake: fix ios toolchain for cmake 3.28
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Dec 23, 2023
1 parent 25af19e commit 889b0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/toolchain/ios.toolchain.xcode.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

Expand Down

0 comments on commit 889b0f1

Please sign in to comment.