Add UTEMPL_USE_LOCAL_PACKAGE option

This commit is contained in:
sha512sum 2024-08-30 08:46:43 +00:00
parent 3f06b44e25
commit 0a2d7c77ea

View file

@ -13,6 +13,7 @@ set(UTEMPL_MODULE OFF)
set(CXX_EXTENSIONS NO) 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)
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")
@ -51,7 +52,7 @@ CPMAddPackage("gh:fmtlib/fmt#11.0.2")
set(TMP ${CPM_USE_LOCAL_PACKAGES}) set(TMP ${CPM_USE_LOCAL_PACKAGES})
set(CPM_USE_LOCAL_PACKAGES OFF) set(CPM_USE_LOCAL_PACKAGES ${UTEMPL_USE_LOCAL_PACKAGE})
CPMAddPackage( CPMAddPackage(
NAME utempl NAME utempl