Skip to content

Commit e724100

Browse files
authored
Merge pull request #50 from outfoxx/fix/deps
Fix dependencies in package targets
2 parents 176c788 + 7dd7c56 commit e724100

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Package.swift

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ import PackageDescription
1313

1414
// Limit Float16 to x86_64 on macOS or Linux
1515
#if swift(>=5.5)
16-
let pcDeps: [Target.Dependency] = ["BigInt", .byName(name: "Float16", condition: .when(platforms: [.macOS, .linux]))]
16+
let pcDeps: [Target.Dependency] = [
17+
"BigInt",
18+
.product(name: "Collections", package: "swift-collections"),
19+
.byName(name: "Float16", condition: .when(platforms: [.macOS, .linux]))
20+
]
1721
#else
18-
let pcDeps: [Target.Dependency] = ["BigInt", "Float16"]
22+
let pcDeps: [Target.Dependency] = [
23+
"BigInt",
24+
.product(name: "Collections", package: "swift-collections"),
25+
"Float16",
26+
]
1927
#endif
2028

2129
let package = Package(
@@ -49,13 +57,15 @@ let package = Package(
4957
name: "PotentJSON",
5058
dependencies: [
5159
"PotentCodables",
60+
"BigInt",
5261
.product(name: "Collections", package: "swift-collections")
5362
]
5463
),
5564
.target(
5665
name: "PotentCBOR",
5766
dependencies: [
5867
"PotentCodables",
68+
"BigInt",
5969
.product(name: "Collections", package: "swift-collections")
6070
]
6171
),
@@ -84,7 +94,12 @@ let package = Package(
8494
),
8595
.target(
8696
name: "PotentYAML",
87-
dependencies: ["Cfyaml", "PotentCodables"]
97+
dependencies: [
98+
"PotentCodables",
99+
"BigInt",
100+
"Cfyaml",
101+
.product(name: "Collections", package: "swift-collections")
102+
]
88103
),
89104
.testTarget(
90105
name: "PotentCodablesTests",

0 commit comments

Comments
 (0)