From 4fd3906c6e8d5821aa4bcb027cf84459a24cc88b Mon Sep 17 00:00:00 2001 From: sha512sum Date: Thu, 5 Sep 2024 12:27:30 +0000 Subject: [PATCH] Add utempl repository url option --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8e3017..6d87c02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,9 @@ set(CXX_EXTENSIONS NO) set(BOOST_INCLUDE_LIBRARIES "pfr;asio") option(CPM_USE_LOCAL_PACKAGES "Use local packages" ON) option(UTEMPL_USE_LOCAL_PACKAGE "Use utempl local package" OFF) +set(UTEMPL_URL + "https://ivt5wiimhwpo56td6eodn2n3fduug3bglqvqewbk2jnyl4hcimea.b32.i2p/git/sha512sum/utempl" + CACHE STRING "utempl repository URL") file(GLOB_RECURSE LIB_SOURCES "library/src/*.cpp") file(GLOB_RECURSE SOURCES "src/*.cpp") @@ -56,7 +59,7 @@ set(CPM_USE_LOCAL_PACKAGES ${UTEMPL_USE_LOCAL_PACKAGE}) CPMAddPackage( NAME utempl - URL "https://github.com/linuxnyasha/utempl/archive/refs/heads/main.zip" + URL "${UTEMPL_URL}/archive/refs/heads/main.zip" EXCLUDE_FROM_ALL ON OPTIONS "ENABLE_TESTS OFF" "ENABLE_EXAMPLES OFF" )