
Since commit 11da882a12
(Apple: Introduce separate system name for iOS,
tvOS, and watchOS, 2018-01-15, v3.14.0-rc1~14^2~1) we support setting
`CMAKE_SYSTEM_NAME` to `iOS`. Existing iOS toolchain files already
set `IOS` as a short-hand variable, so do the same here.
10 lines
243 B
CMake
10 lines
243 B
CMake
include(Platform/Darwin-Initialize)
|
|
|
|
if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhone(OS|Simulator)")
|
|
message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an iOS SDK")
|
|
endif()
|
|
|
|
set(IOS 1)
|
|
|
|
set(_CMAKE_FEATURE_DETECTION_TARGET_TYPE STATIC_LIBRARY)
|