mirror of
https://github.com/reactos/CMake.git
synced 2024-12-16 08:07:29 +00:00
bf11253163
Allow the `Swift` language to be enabled with the Xcode generator for Xcode >= 6.1. Reject it on other generators and with older Xcode versions. Since Apple is the only vendor implementing the language right now, the compiler id can be just `Apple`.
6 lines
233 B
CMake
6 lines
233 B
CMake
cmake_minimum_required(VERSION 3.3)
|
|
project(SwiftMix C Swift)
|
|
|
|
add_executable(SwiftMix CMain.c ObjCMain.m SwiftMain.swift ObjC-Swift.h)
|
|
set_property(TARGET SwiftMix PROPERTY XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "ObjC-Swift.h")
|