mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
5cb625eb2f
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
|