From b46d8db565007cfff37fa1040afdc5b10c317d97 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 4 Oct 2024 00:36:29 +0200 Subject: [PATCH] Workaround CPM issues with patching non-cached checkouts. --- cmake/CPM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CPM.cmake b/cmake/CPM.cmake index 8269a8bf..c1c05320 100644 --- a/cmake/CPM.cmake +++ b/cmake/CPM.cmake @@ -154,7 +154,7 @@ set(CPM_DRY_RUN if(DEFINED ENV{CPM_SOURCE_CACHE}) set(CPM_SOURCE_CACHE_DEFAULT $ENV{CPM_SOURCE_CACHE}) else() - set(CPM_SOURCE_CACHE_DEFAULT OFF) + set(CPM_SOURCE_CACHE_DEFAULT ${CMAKE_CURRENT_BINARY_DIR}/.cpm-cache) endif() set(CPM_SOURCE_CACHE