From ea6f40cbfd54166712d38efce9533c47516b8e9c Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 16 Mar 2023 20:00:45 +0100 Subject: Use release tarballs instead of git repository This is preferable because checking out a tag requires to clone the entire repository. --- contrib/CMakeLists.txt | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 3d98ee4..e016789 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -14,36 +14,32 @@ set(ENTT_USE_LIBCPP OFF CACHE INTERNAL "") set(ENTT_BUILD_TESTING OFF CACHE INTERNAL "") FetchContent_Declare( EnTT - GIT_REPOSITORY https://github.com/skypjack/entt.git - GIT_TAG v3.11.1 - GIT_SHALLOW Yes - OVERRIDE_FIND_PACKAGE + URL https://github.com/skypjack/entt/archive/refs/tags/v3.11.1.tar.gz + URL_HASH SHA1=ef36f33d0edb3688eee8519e2350a9b62460c39f + DOWNLOAD_EXTRACT_TIMESTAMP No ) set(BUILD_GMOCK OFF CACHE INTERNAL "") set(INSTALL_GTEST OFF CACHE INTERNAL "") FetchContent_Declare( GTest - GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG v1.13.0 - GIT_SHALLOW Yes - OVERRIDE_FIND_PACKAGE + URL https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz + URL_HASH SHA1=bfa4b5131b6eaac06962c251742c96aab3f7aa78 + DOWNLOAD_EXTRACT_TIMESTAMP No ) set(JSON_MultipleHeaders ON CACHE INTERNAL "") FetchContent_Declare( nlohmann_json - GIT_REPOSITORY https://github.com/nlohmann/json.git - GIT_TAG v3.11.2 - GIT_SHALLOW Yes - OVERRIDE_FIND_PACKAGE + URL https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz + URL_HASH SHA1=1b0701dc7fdc068aad8ce68fc3e019a038232437 + DOWNLOAD_EXTRACT_TIMESTAMP No ) set(CMAKE_BUILD_TYPE Release CACHE INTERNAL "") set(OpenGL_GL_PREFERENCE GLVND CACHE INTERNAL "") set(USE_EXTERNAL_GLFW OFF CACHE INTERNAL "") FetchContent_Declare( raylib - GIT_REPOSITORY https://github.com/raysan5/raylib.git - GIT_TAG 4.2.0 - GIT_SHALLOW Yes - OVERRIDE_FIND_PACKAGE + URL https://github.com/raysan5/raylib/archive/refs/tags/4.2.0.tar.gz + URL_HASH SHA1=4fdc9d014a66247f99d371e0a12872f15a468133 + DOWNLOAD_EXTRACT_TIMESTAMP No ) MakeAvailable(EnTT GTest nlohmann_json raylib) -- cgit v1.1