diff --git a/CMakeLists.txt b/CMakeLists.txt
index f0dbdd9aa5..368d481fd8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -237,11 +237,6 @@ if(BUILD_TESTING)
     # For CI runners to run tests, the following custom target serves to perform the download automatically.
     # If the directory "test-data" has already been created, the target becomes a "no-op".
     #
-    add_custom_command(OUTPUT  ${CMAKE_SOURCE_DIR}/test-data
-                       COMMENT "Checkout unit-test data repository. Please wait..."
-                       COMMAND git
-                       ARGS    clone https://invent.kde.org/graphics/digikam-test-data.git ${CMAKE_SOURCE_DIR}/test-data
-    )
     add_custom_target(test-data ALL DEPENDS ${CMAKE_SOURCE_DIR}/test-data)
 
 endif()
