mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
correct Xcode generator Swift definitions original code was defining GCC_PREPROCESSOR_DEFINITIONS which is valid only for C languages add definitions to SWIFT_ACTIVE_COMPILATION_CONDITIONS when Swift language is used in the target add test in SwiftOnly for old Xcode (<8.0), append defines to cflags so it ends up in OTHER_SWIFT_FLAGS Fixes: #23637
8 lines
108 B
Swift
8 lines
108 B
Swift
dump("SwiftOnly")
|
|
|
|
#if SWIFTONLY
|
|
dump("SWIFTONLY defined")
|
|
#else
|
|
fatalError("SWIFTONLY NOT defined")
|
|
#endif
|