Skip to content

Commit faaf12c

Browse files
committed
Feat: update CPM and dont use CPM cache for CPM download
1 parent 7c1a39b commit faaf12c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

cmake/CPM.cmake

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
set(CPM_DOWNLOAD_VERSION 0.38.7)
1+
set(CPM_DOWNLOAD_VERSION 0.42.1)
22

3-
if(CPM_SOURCE_CACHE)
4-
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
5-
elseif(DEFINED ENV{CPM_SOURCE_CACHE})
6-
set(CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
7-
else()
8-
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
9-
endif()
3+
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
104

115
if(NOT (EXISTS ${CPM_DOWNLOAD_LOCATION}))
126
message(STATUS "Downloading CPM.cmake to ${CPM_DOWNLOAD_LOCATION}")

0 commit comments

Comments
 (0)