File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- include (CTest)
2
1
include (DownloadProject)
3
2
4
3
# Download and configure Catch2 for the tests
@@ -8,7 +7,6 @@ download_project(PROJ Catch2
8
7
UPDATE_DISCONNECTED 1
9
8
)
10
9
list (APPEND CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR} /contrib)
11
- include (ParseAndAddCatchTests)
12
10
13
11
# Configure Catch2 so that it looks like a proper target
14
12
add_library (Catch2 INTERFACE )
@@ -90,7 +88,6 @@ add_executable(cxx_98_tests
90
88
)
91
89
configure_tests(cxx_98_tests)
92
90
target_compile_features (cxx_98_tests PRIVATE cxx_std_98)
93
- ParseAndAddCatchTests(cxx_98_tests)
94
91
95
92
# Tests that require C++11 support
96
93
add_executable (cxx_11_tests
@@ -99,4 +96,8 @@ add_executable(cxx_11_tests
99
96
)
100
97
configure_tests(cxx_11_tests)
101
98
target_compile_features (cxx_11_tests PRIVATE cxx_std_11)
99
+
100
+ include (CTest)
101
+ include (ParseAndAddCatchTests)
102
+ ParseAndAddCatchTests(cxx_98_tests)
102
103
ParseAndAddCatchTests(cxx_11_tests)
You can’t perform that action at this time.
0 commit comments