From 0a2d7c77ea1ead8f7aabaaf9372644496876dd23 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 30 Aug 2024 08:46:43 +0000 Subject: [PATCH] Add UTEMPL_USE_LOCAL_PACKAGE option --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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