Static Methodswift-package-manager 6.0.1PackageDescription
define(_:to:_:)
Defines a value for a macro.
BuildSettings.swift:156- SwiftPM
- 5.0+
static func define(_ name: String, to value: String? = nil, _ condition: BuildSettingCondition? = nil) -> CSetting
Parameters
If you don’t specify a value, the macro’s default value is 1.
See also
static func headerSearchPath(String, BuildSettingCondition?
) -> CSetting Provides a header search path relative to the target’s directory.
static func unsafeFlags([String], BuildSettingCondition?
) -> CSetting Sets unsafe flags to pass arbitrary command-line flags to the corresponding build tool.