Skip to content

Commit

Permalink
Fix iOS CMake toolchain for newer versions of CMake (neoml-lib#1016)
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Fedyunin <valery.fedyunin@abbyy.com>
Signed-off-by: daniyalaliev <daniial.aliev@abbyy.com>
  • Loading branch information
Valeriy Fedyunin authored and daniyalaliev committed Jan 3, 2024
1 parent ba6af80 commit a4f9e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ message(STATUS "Building with Xcode version: ${XCODE_VERSION}")
# 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 -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION)
string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VERSION}")
endif(CMAKE_UNAME)

Expand Down

0 comments on commit a4f9e7c

Please sign in to comment.