mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Apple: Introduce separate system name for iOS, tvOS, and watchOS
- Remove code signing requirements for non-macOS - Do not set deployment target for non-macOS - Build static library for compiler feature detection for non-macOS - Use framework to run CompilerId tests for watchOS - Port tests to new SDK handling - Add new Apple cross-compiling section to toolchain documentation Closes: #17870
This commit is contained in:
@@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.3)
|
||||
|
||||
project(XcodeIOSInstallCombinedPrune CXX)
|
||||
|
||||
# due to lack of toolchain file it might point to running macOS version
|
||||
unset(CMAKE_OSX_DEPLOYMENT_TARGET CACHE)
|
||||
if(XCODE_VERSION VERSION_GREATER_EQUAL 9)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10)
|
||||
endif()
|
||||
|
||||
set(CMAKE_OSX_SYSROOT iphoneos)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user