Skip to content

Commit

Permalink
Merge pull request #50 from outfoxx/fix/deps
Browse files Browse the repository at this point in the history
Fix dependencies in package targets
  • Loading branch information
kdubb committed Feb 14, 2023
2 parents 176c788 + 7dd7c56 commit e724100
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ import PackageDescription

// Limit Float16 to x86_64 on macOS or Linux
#if swift(>=5.5)
let pcDeps: [Target.Dependency] = ["BigInt", .byName(name: "Float16", condition: .when(platforms: [.macOS, .linux]))]
let pcDeps: [Target.Dependency] = [
"BigInt",
.product(name: "Collections", package: "swift-collections"),
.byName(name: "Float16", condition: .when(platforms: [.macOS, .linux]))
]
#else
let pcDeps: [Target.Dependency] = ["BigInt", "Float16"]
let pcDeps: [Target.Dependency] = [
"BigInt",
.product(name: "Collections", package: "swift-collections"),
"Float16",
]
#endif

let package = Package(
Expand Down Expand Up @@ -49,13 +57,15 @@ let package = Package(
name: "PotentJSON",
dependencies: [
"PotentCodables",
"BigInt",
.product(name: "Collections", package: "swift-collections")
]
),
.target(
name: "PotentCBOR",
dependencies: [
"PotentCodables",
"BigInt",
.product(name: "Collections", package: "swift-collections")
]
),
Expand Down Expand Up @@ -84,7 +94,12 @@ let package = Package(
),
.target(
name: "PotentYAML",
dependencies: ["Cfyaml", "PotentCodables"]
dependencies: [
"PotentCodables",
"BigInt",
"Cfyaml",
.product(name: "Collections", package: "swift-collections")
]
),
.testTarget(
name: "PotentCodablesTests",
Expand Down

0 comments on commit e724100

Please sign in to comment.