File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,7 @@ function(_corrosion_add_library_target)
408408 set (is_windows_gnu "" )
409409 set (is_windows_msvc "" )
410410 set (is_macos "" )
411+ set (is_ios "" )
411412 if (Rust_CARGO_TARGET_OS STREQUAL "windows" )
412413 set (is_windows TRUE )
413414 if (Rust_CARGO_TARGET_ENV STREQUAL "msvc" )
@@ -417,6 +418,8 @@ function(_corrosion_add_library_target)
417418 endif ()
418419 elseif (Rust_CARGO_TARGET_OS STREQUAL "darwin" )
419420 set (is_macos TRUE )
421+ elseif (Rust_CARGO_TARGET_OS STREQUAL "ios" )
422+ set (is_ios true )
420423 endif ()
421424
422425 # target file names
@@ -430,7 +433,7 @@ function(_corrosion_add_library_target)
430433
431434 if (is_windows)
432435 set (dynamic_lib_name "${lib_name} .dll" )
433- elseif (is_macos)
436+ elseif (is_macos OR is_ios )
434437 set (dynamic_lib_name "lib${lib_name} .dylib" )
435438 else ()
436439 set (dynamic_lib_name "lib${lib_name} .so" )
You can’t perform that action at this time.
0 commit comments