Skip to content

Commit 4eb4c51

Browse files
committed
remove catch2 for installation
1 parent 2aa000b commit 4eb4c51

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

backend/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ include(FetchContent)
2929
set(BUILD_TESTING_SAVED ${BUILD_TESTING})
3030
set(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
4333
FetchContent_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"

0 commit comments

Comments
 (0)