addition: fixes for docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user