Skip to content

Commit 9d1f88c

Browse files
committed
Ignore CMakeLists.txt in SwiftPM
Suppress some warnings from SwiftPM by excluding CMakeLists.txt from targets. Closes #716
1 parent b268009 commit 9d1f88c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Package.swift

+5-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ let package = Package(
4141
dependencies: dependencies,
4242
targets: [
4343
.target(
44-
name: "_SwiftFormatInstructionCounter"
44+
name: "_SwiftFormatInstructionCounter",
45+
exclude: ["CMakeLists.txt"]
4546
),
4647

4748
.target(
@@ -53,7 +54,8 @@ let package = Package(
5354
.product(name: "SwiftOperators", package: "swift-syntax"),
5455
.product(name: "SwiftParser", package: "swift-syntax"),
5556
.product(name: "SwiftParserDiagnostics", package: "swift-syntax"),
56-
]
57+
],
58+
exclude: ["CMakeLists.txt"]
5759
),
5860
.target(
5961
name: "_SwiftFormatTestSupport",
@@ -105,6 +107,7 @@ let package = Package(
105107
.product(name: "SwiftSyntax", package: "swift-syntax"),
106108
.product(name: "SwiftParser", package: "swift-syntax"),
107109
],
110+
exclude: ["CMakeLists.txt"],
108111
linkerSettings: swiftformatLinkSettings
109112
),
110113

0 commit comments

Comments
 (0)