Workaround CPM issues with patching non-cached checkouts.

This commit is contained in:
Bartosz Taudul 2024-10-04 00:36:29 +02:00
parent 4497201928
commit b46d8db565
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -154,7 +154,7 @@ set(CPM_DRY_RUN
if(DEFINED ENV{CPM_SOURCE_CACHE}) if(DEFINED ENV{CPM_SOURCE_CACHE})
set(CPM_SOURCE_CACHE_DEFAULT $ENV{CPM_SOURCE_CACHE}) set(CPM_SOURCE_CACHE_DEFAULT $ENV{CPM_SOURCE_CACHE})
else() else()
set(CPM_SOURCE_CACHE_DEFAULT OFF) set(CPM_SOURCE_CACHE_DEFAULT ${CMAKE_CURRENT_BINARY_DIR}/.cpm-cache)
endif() endif()
set(CPM_SOURCE_CACHE set(CPM_SOURCE_CACHE