mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We're recommending people just go with a global variable. <rdar://problem/17272837> Swift SVN r18837
17 lines
396 B
CMake
17 lines
396 B
CMake
set(SHARED_LIBRARY ON)
|
|
set(SWIFTFOUNDATION_SOURCES
|
|
Foundation.swift
|
|
NSStringAPI.swift
|
|
Misc.mm
|
|
)
|
|
|
|
add_swift_library(swiftFoundation INSTALL
|
|
${SWIFTFOUNDATION_SOURCES}
|
|
DEPENDS swift_stdlib_core swiftObjectiveC swiftCoreGraphics swiftDispatch)
|
|
|
|
add_swift_optimization_flags(swiftFoundation)
|
|
|
|
# Link against frameworks
|
|
target_link_libraries(swiftFoundation
|
|
"-framework Foundation")
|