Type Method

define(_:to:_:)

Defines a value for a macro.

Declaration

static func define(_ name: String, to value: String? = nil, _ condition: BuildSettingCondition? = nil) -> CXXSetting

Parameters

name

The name of the macro.

value

The value of the macro.

condition

A condition that restricts the application of the build setting.

Discussion

If you don’t specify a value, the macro’s default value is 1.

See Also

Configuring C++ Settings

static func headerSearchPath(String, BuildSettingCondition?) -> CXXSetting

Provide a header search path relative to the target’s directory.

static func unsafeFlags([String], BuildSettingCondition?) -> CXXSetting

Set unsafe flags to pass arbitrary command-line flags to the corresponding build tool.