Skip to content

Commit

Permalink
add a header search path
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 1, 2024
1 parent 89364b7 commit e6b66f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ let cSettings: [CSetting] = [
.define("DEBUG_BUILD", .when(configuration: .debug))
]

let cSettingsCommon: [CSetting] = [
.headerSearchPath("source/external/libcbor"),
.define("DEBUG_BUILD", .when(configuration: .debug))
]

//////////////////////////////////////////////////////////////////////
/// Configure C targets.
/// Note: We can not use unsafe flags because SwiftPM makes the target ineligible for use by other packages.
Expand Down Expand Up @@ -198,7 +203,7 @@ packageTargets.append(contentsOf: [
dependencies: ["AwsCPlatformConfig"],
path: "aws-common-runtime/aws-c-common",
exclude: awsCCommonPlatformExcludes,
cSettings: cSettings
cSettings: cSettingsCommon
),
.target(
name: "AwsCSdkUtils",
Expand Down

0 comments on commit e6b66f5

Please sign in to comment.