diff --git a/CMakeLists.txt b/CMakeLists.txt index fbfce66..e8e3017 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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