Skip to content

Commit 4217042

Browse files
authored
Exclude CMakeLists.txt from package targets. (#427)
This PR silences some warnings from SwiftPM now that we have CMake support since SwiftPM doesn't recognize the CMakeLists.txt files used by CMake. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 3ea2af8 commit 4217042

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ let package = Package(
4343
"_TestingInternals",
4444
"TestingMacros",
4545
],
46+
exclude: ["CMakeLists.txt"],
4647
cxxSettings: .packageSettings,
4748
swiftSettings: .packageSettings
4849
),
@@ -65,6 +66,7 @@ let package = Package(
6566
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
6667
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
6768
],
69+
exclude: ["CMakeLists.txt"],
6870
swiftSettings: .packageSettings + [
6971
// The only target which needs the ability to import this macro
7072
// implementation target's module is its unit test target. Users of the
@@ -80,6 +82,7 @@ let package = Package(
8082
// by other targets above, not directly included in product libraries.
8183
.target(
8284
name: "_TestingInternals",
85+
exclude: ["CMakeLists.txt"],
8386
cxxSettings: .packageSettings
8487
),
8588

[email protected]

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ let package = Package(
4343
"_TestingInternals",
4444
"TestingMacros",
4545
],
46+
exclude: ["CMakeLists.txt"],
4647
cxxSettings: .packageSettings,
4748
swiftSettings: .packageSettings
4849
),
@@ -65,6 +66,7 @@ let package = Package(
6566
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
6667
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
6768
],
69+
exclude: ["CMakeLists.txt"],
6870
swiftSettings: .packageSettings + [
6971
// The only target which needs the ability to import this macro
7072
// implementation target's module is its unit test target. Users of the
@@ -80,6 +82,7 @@ let package = Package(
8082
// by other targets above, not directly included in product libraries.
8183
.target(
8284
name: "_TestingInternals",
85+
exclude: ["CMakeLists.txt"],
8386
cxxSettings: .packageSettings
8487
),
8588

0 commit comments

Comments
 (0)