addition: fixes for docs

This commit is contained in:
2026-05-07 11:04:51 -06:00
parent 1347adfcaa
commit ad1824246c
3 changed files with 38 additions and 21 deletions

View File

@@ -22,18 +22,27 @@ set(CPM_DOWNLOAD_LOCATION
)
if(NOT EXISTS ${CPM_DOWNLOAD_LOCATION})
message(STATUS "Downloading CPM.cmake...")
file(
DOWNLOAD
https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
${CPM_DOWNLOAD_LOCATION}
"https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake"
"${CPM_DOWNLOAD_LOCATION}"
STATUS download_status
)
list(GET download_status 0 status_code)
if(NOT status_code EQUAL 0)
message(FATAL_ERROR
"Failed to download CPM.cmake"
)
endif()
endif()
include(${CPM_DOWNLOAD_LOCATION})
include(cmake/CPM.cmake)
include("${CPM_DOWNLOAD_LOCATION}")
CPMAddPackage(
NAME arraylist