Add utempl repository url option
This commit is contained in:
parent
03f4c11266
commit
4fd3906c6e
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue