Skip to content

Commit 7faa2da

Browse files
committed
test
1 parent 8906b9f commit 7faa2da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include(CTest)
21
include(DownloadProject)
32

43
# Download and configure Catch2 for the tests
@@ -8,7 +7,6 @@ download_project(PROJ Catch2
87
UPDATE_DISCONNECTED 1
98
)
109
list(APPEND CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR}/contrib)
11-
include(ParseAndAddCatchTests)
1210

1311
# Configure Catch2 so that it looks like a proper target
1412
add_library(Catch2 INTERFACE)
@@ -90,7 +88,6 @@ add_executable(cxx_98_tests
9088
)
9189
configure_tests(cxx_98_tests)
9290
target_compile_features(cxx_98_tests PRIVATE cxx_std_98)
93-
ParseAndAddCatchTests(cxx_98_tests)
9491

9592
# Tests that require C++11 support
9693
add_executable(cxx_11_tests
@@ -99,4 +96,8 @@ add_executable(cxx_11_tests
9996
)
10097
configure_tests(cxx_11_tests)
10198
target_compile_features(cxx_11_tests PRIVATE cxx_std_11)
99+
100+
include(CTest)
101+
include(ParseAndAddCatchTests)
102+
ParseAndAddCatchTests(cxx_98_tests)
102103
ParseAndAddCatchTests(cxx_11_tests)

0 commit comments

Comments
 (0)