Add utempl repository url option

This commit is contained in:
sha512sum 2024-09-05 12:27:30 +00:00
parent 03f4c11266
commit 4fd3906c6e

View file

@ -14,6 +14,9 @@ set(CXX_EXTENSIONS NO)
set(BOOST_INCLUDE_LIBRARIES "pfr;asio") set(BOOST_INCLUDE_LIBRARIES "pfr;asio")
option(CPM_USE_LOCAL_PACKAGES "Use local packages" ON) option(CPM_USE_LOCAL_PACKAGES "Use local packages" ON)
option(UTEMPL_USE_LOCAL_PACKAGE "Use utempl local package" OFF) 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 LIB_SOURCES "library/src/*.cpp")
file(GLOB_RECURSE SOURCES "src/*.cpp") file(GLOB_RECURSE SOURCES "src/*.cpp")
@ -56,7 +59,7 @@ set(CPM_USE_LOCAL_PACKAGES ${UTEMPL_USE_LOCAL_PACKAGE})
CPMAddPackage( CPMAddPackage(
NAME utempl 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 EXCLUDE_FROM_ALL ON
OPTIONS "ENABLE_TESTS OFF" "ENABLE_EXAMPLES OFF" OPTIONS "ENABLE_TESTS OFF" "ENABLE_EXAMPLES OFF"
) )