mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Without proper dependencies among the overlays, we may try to load an outdated overlay module while building another overlay. Swift SVN r17753
18 lines
410 B
CMake
18 lines
410 B
CMake
set(SHARED_LIBRARY ON)
|
|
set(SWIFTFOUNDATION_SOURCES
|
|
Foundation.swift
|
|
KVO.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")
|