File tree 3 files changed +14
-12
lines changed
3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ BUILD_TYPE=Debug
5
5
6
6
set -eux
7
7
8
- git clone https://github.com/onqtam /doctest -b 2.4.4 --depth 1
8
+ git clone https://github.com/red0124 /doctest -b master --depth 1
9
9
10
10
cmake -S doctest -B doctest/build \
11
11
-D CMAKE_BUILD_TYPE=${BUILD_TYPE} \
Original file line number Diff line number Diff line change 1
1
[wrap-git]
2
- url = https://github.com/onqtam /doctest
3
- revision = v2.4.9
2
+ url = https://github.com/red0124 /doctest
3
+ revision = master
Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ project(ssp_tests CXX)
4
4
5
5
# ---- Dependencies ----
6
6
7
- set (SSP_INCLUDE_WITHOUT_SYSTEM YES
8
- CACHE INTERNAL
9
- "Turn the warning guard off to have errors appear in test builds"
10
- )
11
-
12
7
include (FetchContent)
13
8
fetchcontent_declare(ssp SOURCE_DIR "${PROJECT_SOURCE_DIR} /.." )
14
9
fetchcontent_makeavailable(ssp)
@@ -17,9 +12,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
17
12
target_compile_options (ssp INTERFACE -Wall -Wextra)
18
13
endif ()
19
14
20
- find_package (doctest 2.4.4 CONFIG REQUIRED)
21
- # for doctest_discover_tests
22
- include (doctest)
15
+ include (FetchContent)
16
+ fetchcontent_declare(
17
+ DOCTEST
18
+ GIT_REPOSITORY https://github.com/red0124/doctest
19
+ GIT_TAG origin/master
20
+ GIT_SHALLOW TRUE
21
+ )
22
+
23
+ fetchcontent_makeavailable(DOCTEST)
24
+ set (DOCTEST "${FETCHCONTENT_BASE_DIR} /doctest-src" )
23
25
24
26
# ---- Test ----
25
27
@@ -35,5 +37,5 @@ foreach(name IN ITEMS test_splitter test_parser test_converter test_extractions)
35
37
"${name} "
36
38
PRIVATE DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN CMAKE_GITHUB_CI
37
39
)
38
- doctest_discover_tests( "${name} " )
40
+ add_test ( NAME " ${name} " COMMAND "${name} " )
39
41
endforeach ()
You can’t perform that action at this time.
0 commit comments