Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 88b9af4

Browse files
committed
Catch2 actually has bazel support now
1 parent 2f96af7 commit 88b9af4

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
[submodule "third_party/json"]
1111
path = third_party/json
1212
url = https://github.com/nlohmann/json.git
13-
[submodule "third_party/Catch2"]
14-
path = third_party/Catch2
15-
url = https://github.com/catchorg/Catch2.git
1613
[submodule "third_party/wil"]
1714
path = third_party/wil
1815
url = https://github.com/microsoft/wil.git

WORKSPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ git_repository(
1111
remote = "https://github.com/bazelbuild/bazel.git",
1212
)
1313

14+
http_archive(
15+
name = "catch2",
16+
strip_prefix = "Catch2-2.13.10",
17+
url = "https://github.com/catchorg/Catch2/archive/v2.13.10.tar.gz",
18+
)
19+
1420
http_archive(
1521
name = "bazel_skylib",
1622
type = "tar.gz",

tests/xml/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cc_test(
6363
}),
6464
deps = [
6565
"//libs/xml-operations",
66-
"//third_party:Catch2",
66+
"@catch2//:catch2",
6767
"//third_party:json",
6868
],
6969
)

third_party/BUILD

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ cc_library(
3434
visibility = ["//visibility:public"],
3535
)
3636

37-
cc_library(
38-
name = "Catch2",
39-
hdrs = glob(["Catch2/single_include/**/*.hpp"]),
40-
includes = [
41-
"Catch2/single_include",
42-
],
43-
visibility = ["//visibility:public"],
44-
)
45-
4637
cc_library(
4738
name = "json",
4839
hdrs = glob(["json/single_include/json.hpp"]),

third_party/Catch2

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)