Swift: Use macOS-style linker flags on iOS, tvOS, and watchOS too
Without this, building a shared Swift library with CMAKE_SYSTEM_NAME=iOS
produces the error ld: unknown option: -soname
. iOS is an Apple platform,
and so should use the -install_name
option.
Migrated from GitHub PR 357.
Edited by Brad King