diff --git a/CMakeLists.txt b/CMakeLists.txt
index 26ca37da3758a436110a69869f24360491b6b2d6..d71388a0216535a4abe4aabc414a9a6ece3080e6 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)