File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,6 @@ include(FetchContent)
2929set (BUILD_TESTING_SAVED ${BUILD_TESTING} )
3030set (BUILD_TESTING OFF )
3131
32- # Fetch Catch2 for C++ unit testing
33- FetchContent_Declare(
34- Catch2
35- GIT_REPOSITORY https://github.com/catchorg/Catch2.git
36- GIT_TAG v3.5.4
37- )
38- set (CATCH_BUILD_TESTING OFF CACHE BOOL "" FORCE)
39- set (CATCH_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
40- FetchContent_MakeAvailable(Catch2)
41-
4232# Fetch Eigen3 for numerical computations
4333FetchContent_Declare(
4434 Eigen3
@@ -209,6 +199,16 @@ if(ELASTICAPP_BUILD_TESTS)
209199 enable_testing ()
210200 include (CTest)
211201
202+ # Fetch Catch2 for C++ unit testing
203+ FetchContent_Declare(
204+ Catch2
205+ GIT_REPOSITORY https://github.com/catchorg/Catch2.git
206+ GIT_TAG v3.5.4
207+ )
208+ set (CATCH_BUILD_TESTING OFF CACHE BOOL "" FORCE)
209+ set (CATCH_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
210+ FetchContent_MakeAvailable(Catch2)
211+
212212 # Test executable
213213 add_executable (cpp_tests
214214 "${TEST_DIR} /cpp/test_version.cpp"
You can’t perform that action at this time.
0 commit comments