Skip to content

Commit 57a51d7

Browse files
authored
translate CMAKE_SYSTEM_NAME in compilations on or for IOS
1 parent 35f2e6a commit 57a51d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/system_check.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if (${HOST_OS} STREQUAL "WINDOWS")
1010
set(HOST_OS WINNT)
1111
endif ()
1212

13+
if (${HOST_OS} STREQUAL "IOS")
14+
set(HOST_OS DARWIN)
15+
endif ()
16+
1317
if (${HOST_OS} STREQUAL "LINUX")
1418
# check if we're building natively on Android (TERMUX)
1519
EXECUTE_PROCESS( COMMAND uname -o COMMAND tr -d '\n' OUTPUT_VARIABLE OPERATING_SYSTEM)

0 commit comments

Comments
 (0)