Type Method

headerSearchPath(_:_:)

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

Declaration

static func headerSearchPath(_ path: String, _ condition: BuildSettingCondition? = nil) -> CXXSetting

Parameters

path

The path of the directory that contains the headers. The path is relative to the target’s directory.

condition

A condition that restricts the application of the build setting.

Discussion

Use this setting to add a search path for headers within your target. You can’t use absolute paths and you can’t use this setting to provide headers that are visible to other targets.

The path must be a directory inside the package.

See Also

Configuring C++ Settings

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

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