Skip to content

Commit b816349

Browse files
authored
Exclude CMakeLists.txt files from SwiftPM targets (#1335)
SwiftPM requires that all files within a target are accounted for as part of the build. If there are extraneous files that do not form a part of the target, the package manager emits a warning about unhandled files. This patch updates Package.swift to exclude all CMakeLists.txt files from their relevant SwiftPM targets to remove this warning.
1 parent 45aa567 commit b816349

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ let package = Package(
4848
.product(name: "CLMDB", package: "swift-lmdb"),
4949
.product(name: "Crypto", package: "swift-crypto"),
5050
],
51+
exclude: ["CMakeLists.txt"],
5152
swiftSettings: swiftSettings
5253
),
5354
.testTarget(
@@ -72,6 +73,7 @@ let package = Package(
7273
.product(name: "NIOHTTP1", package: "swift-nio", condition: .when(platforms: [.macOS, .iOS, .linux, .android])),
7374
.product(name: "ArgumentParser", package: "swift-argument-parser")
7475
],
76+
exclude: ["CMakeLists.txt"],
7577
swiftSettings: swiftSettings
7678
),
7779
.testTarget(
@@ -104,6 +106,7 @@ let package = Package(
104106
dependencies: [
105107
.target(name: "SwiftDocCUtilities"),
106108
],
109+
exclude: ["CMakeLists.txt"],
107110
swiftSettings: swiftSettings
108111
),
109112

@@ -125,7 +128,6 @@ let package = Package(
125128
],
126129
swiftSettings: swiftSettings
127130
),
128-
129131
]
130132
)
131133

0 commit comments

Comments
 (0)