File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,9 @@ endif()
1616# Expand relative path. This is important if the provided path contains a tilde (~)
1717get_filename_component (CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE )
1818
19- message (STATUS "Using CPM at ${CPM_DOWNLOAD_LOCATION} " )
20-
21- file (
22- DOWNLOAD
23- https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION} /CPM.cmake
24- ${CPM_DOWNLOAD_LOCATION}
25- STATUS CPM_DOWNLOAD_STATUS
26- EXPECTED_HASH SHA256=${CPM_HASH_SUM}
19+ file (DOWNLOAD
20+ https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION} /CPM.cmake
21+ ${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM}
2722)
2823
29- list (GET CPM_DOWNLOAD_STATUS 0 CPM_DOWNLOAD_STATUS_CODE)
30- if (NOT ${CPM_DOWNLOAD_STATUS_CODE} EQUAL 0)
31- # give a fatal error when download fails
32- list (GET CPM_DOWNLOAD_STATUS 1 CPM_DOWNLOAD_ERROR_MESSAGE)
33- message (FATAL_ERROR "Error occurred during download of CPM: ${CPM_DOWNLOAD_ERROR_MESSAGE} " )
34- endif ()
35-
3624include (${CPM_DOWNLOAD_LOCATION} )
You can’t perform that action at this time.
0 commit comments