[CMake] Do not explicit set CPM_SOURCE_CACHE

This commit is contained in:
Caio Oliveira 2025-10-13 22:34:30 +02:00 committed by crueter
parent 56e2dbc619
commit 9ea321e29a

View file

@ -132,7 +132,9 @@ if (CXX_CLANG_CL)
endif()
endif()
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm)
if(NOT DEFINED CPM_SOURCE_CACHE)
set(CPM_SOURCE_CACHE "${CMAKE_SOURCE_DIR}/.cache/cpm")
endif()
include(DownloadExternals)
include(CMakeDependentOption)