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`.
12 lines
188 B
CMake
12 lines
188 B
CMake
include(RunCMake)
|
|
|
|
if(RunCMake_GENERATOR STREQUAL Xcode)
|
|
if(XCODE_BELOW_6_1)
|
|
run_cmake(XcodeTooOld)
|
|
else()
|
|
run_cmake(Enable)
|
|
endif()
|
|
else()
|
|
run_cmake(NotSupported)
|
|
endif()
|