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