Skip to content

Same as internal lib

Latest
Compare
Choose a tag to compare
@LiarPrincess LiarPrincess released this 25 Jan 08:02

Same as internal lib but without some operations.

You may need to include the math library:

let package = Package(
  name: "xxx",
  products: [
    .executable(name: "main", targets: ["app"])
  ],
  dependencies: [
    .package(
      url: "https://github.com/LiarPrincess/Oh-my-decimal",
      from: "0.0.1"
    )
  ],
  targets: [
    .executableTarget(
      name: "app",
      dependencies: [
        .product(name: "Decimal", package: "Oh-my-decimal")
      ],
      path: "Sources",
      linkerSettings: [.unsafeFlags(["-lm"])] // <----- HERE!
    ),
  ]
)