Add UTEMPL_USE_LOCAL_PACKAGE option
This commit is contained in:
parent
3f06b44e25
commit
0a2d7c77ea
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ set(UTEMPL_MODULE OFF)
|
|||
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)
|
||||
|
||||
file(GLOB_RECURSE LIB_SOURCES "library/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(CPM_USE_LOCAL_PACKAGES OFF)
|
||||
set(CPM_USE_LOCAL_PACKAGES ${UTEMPL_USE_LOCAL_PACKAGE})
|
||||
|
||||
CPMAddPackage(
|
||||
NAME utempl
|
||||
|
|
Loading…
Reference in a new issue