mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
- 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
23 lines
603 B
CMake
23 lines
603 B
CMake
cmake_minimum_required(VERSION 3.3)
|
|
|
|
project(XcodeIOSInstallCombinedSingleArch CXX)
|
|
|
|
if(XCODE_VERSION VERSION_GREATER_EQUAL 9)
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 10)
|
|
endif()
|
|
|
|
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "NO")
|
|
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf")
|
|
|
|
add_library(foo SHARED foo.cpp)
|
|
install(TARGETS foo DESTINATION lib)
|
|
|
|
set_target_properties(
|
|
foo
|
|
PROPERTIES
|
|
XCODE_ATTRIBUTE_ARCHS[sdk=iphoneos*] armv7
|
|
XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphoneos*] armv7
|
|
XCODE_ATTRIBUTE_ARCHS[sdk=iphonesimulator*] ""
|
|
XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] ""
|
|
)
|