mirror of
https://github.com/reactos/CMake.git
synced 2025-03-03 01:26:05 +00:00

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")
|