From 741fbd3177f4c34a1e494a6a6f8a8c228b445513 Mon Sep 17 00:00:00 2001
From: mkirsz <s1351949@sms.ed.ac.uk>
Date: Tue, 4 Mar 2025 22:22:28 +0000
Subject: [PATCH] Json lib use git tag

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 26ca37d..d71388a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -138,8 +138,8 @@ target_link_libraries(tadah.mlip PRIVATE gemmi::headers)
 
 FetchContent_Declare(
   json
-  URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
-  DOWNLOAD_EXTRACT_TIMESTAMP true
+  GIT_REPOSITORY https://github.com/nlohmann/json.git
+  GIT_TAG        v3.11.3
 )
 FetchContent_MakeAvailable(json)
 target_link_libraries(tadah.mlip PRIVATE nlohmann_json::nlohmann_json)
-- 
GitLab