Static Methodswift-package-manager 6.0.1PackageDescription
linkedLibrary(_:_:)
Declares linkage to a system library.
BuildSettings.swift:447- SwiftPM
- 5.0+
static func linkedLibrary(_ library: String, _ condition: BuildSettingCondition? = nil) -> LinkerSetting
Parameters
This setting is most useful when the library can’t be linked automatically, such as C++ based libraries and non-modular libraries.
See also
static func linkedFramework(String, BuildSettingCondition?
) -> LinkerSetting Declares linkage to a system framework.
static func unsafeFlags([String], BuildSettingCondition?
) -> LinkerSetting Sets unsafe flags to pass arbitrary command-line flags to the corresponding build tool.