cmake file(DOWNLOAD) examples

ornladios/ADIOS2 .gitlab/config/ccache.cmake :45

file(DOWNLOAD
  "${full_url}" $ENV{CCACHE_INSTALL_DIR}/${tarball}
  EXPECTED_HASH SHA256=${sha256sum}
  SHOW_PROGRESS
  )

ornladios/ADIOS2 scripts/ci/gh-actions/config/ninja.cmake :20

file(DOWNLOAD
    "https://github.com/ninja-build/ninja/releases/download/v${version}/${tarball}" $ENV{CI_ROOT_DIR}/.local/bin/${tarball}
  EXPECTED_HASH SHA256=${sha256sum}
  SHOW_PROGRESS
  )

OpenChemistry/avogadrolibs cmake/DownloadGenXrdPattern.cmake :40

file(DOWNLOAD "${GENXRDPATTERN_DOWNLOAD_LOCATION}"
     "${CMAKE_CURRENT_BINARY_DIR}/tmp/${GENXRDPATTERN_NAME}"
     SHOW_PROGRESS
     EXPECTED_MD5 ${MD5})

ccache/ccache cmake/Utils.cmake :102

file(
  DOWNLOAD "${arg_URL}" "${_src_dir}/${arg_SUBDIR}/${_header}"
  EXPECTED_HASH "SHA256=${arg_SHA256}"
  STATUS _download_status
)

CNugteren/CLBlast CMakeLists.txt :389

file(DOWNLOAD https://raw.githubusercontent.com/KhronosGroup/OpenCL-CLHPP/refs/tags/${CLHPP_VERSION}/include/CL/opencl.hpp ${clblast_SOURCE_DIR}/samples/opencl.hpp)

CLIUtils/CLI11 tests/CMakeLists.txt :92

file(
  DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch2/catch.hpp"
  STATUS status
  EXPECTED_HASH SHA256=3725c0f0a75f376a5005dde31ead0feb8f7da7507644c201b814443de8355170)

jcelerier/cninja cmake/download-llvm.cmake :1

file(DOWNLOAD "https://github.com/mstorsjo/llvm-mingw/releases/download/20230919/llvm-mingw-20230919-ucrt-x86_64.zip" "./llvm.zip")

jcelerier/cninja cmake/download-llvm.cmake :2

file(DOWNLOAD "https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip" "./ninja.zip")

schrodinger/coordgenlibs cmake/CoordgenUtils.cmake :21

file(DOWNLOAD "https://github.com/schrodinger/maeparser/archive/${MAEPARSER_VERSION}.tar.gz"
    "${maeparser_DIR}/maeparser-${MAEPARSER_VERSION}.tar.gz")

microsoft/cppwinrt test/CMakeLists.txt :54

file(
    DOWNLOAD https://github.com/mingw-w64/mingw-w64/raw/2b6272b31132e156dd1fc3722c1aa96b705a90dd/mingw-w64-headers/include/windowsnumerics.impl.h
    "${CMAKE_CURRENT_BINARY_DIR}/windowsnumerics/windowsnumerics.impl.h"
    EXPECTED_HASH SHA256=aff42491e57583c8ad8ca8e71d417a553bd1215ee9a71378679400ecded4b1ab
    SHOW_PROGRESS
)

microsoft/DirectXMath SHMath/CMakeLists.txt :222

file(DOWNLOAD
    https://raw.githubusercontent.com/dotnet/runtime/v9.0.2/src/coreclr/pal/inc/rt/sal.h
    "${CMAKE_CURRENT_BINARY_DIR}/sal/sal.h"
    EXPECTED_HASH SHA512=8085f67bfa4ce01ae89461cadf72454a9552fde3f08b2dcc3de36b9830e29ce7a6192800f8a5cb2a66af9637be0017e85719826a4cfdade508ae97f319e0ee8e
)

davisking/dlib dlib/external/pybind11/tools/FindCatch.cmake :39

file(
  DOWNLOAD ${url} "${destination_dir}/catch.hpp"
  STATUS status
  LOG log)

Exiv2/exiv2 cmake/findDependencies.cmake :5

file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/develop/conan.cmake"
              "${CMAKE_BINARY_DIR}/conan.cmake"
              TLS_VERIFY ON)

spnda/fastgltf deps/CMakeLists.txt :18

file(DOWNLOAD "https://raw.githubusercontent.com/simdjson/simdjson/v${SIMDJSON_TARGET_VERSION}/singleheader/simdjson.h" ${SIMDJSON_HEADER_FILE})

spnda/fastgltf deps/CMakeLists.txt :19

file(DOWNLOAD "https://raw.githubusercontent.com/simdjson/simdjson/v${SIMDJSON_TARGET_VERSION}/singleheader/simdjson.cpp" ${SIMDJSON_SOURCE_FILE})

fontforge/fontforge cmake/scripts/DownloadIfMissing.cmake :21

file(DOWNLOAD "${URL}" "${DEST}")

FreeRDP/FreeRDP cmake/WebView2.cmake :17

file(DOWNLOAD ${WEBVIEW2_URL} ${CMAKE_CURRENT_BINARY_DIR}/webview2.nuget EXPECTED_HASH SHA256=${WEBVIEW2_SHA256})

OSGeo/gdal cmake/modules/thirdparty/FindDotnet.cmake :160

FILE(DOWNLOAD https://dist.nuget.org/win-x86-commandline/latest/nuget.exe ${NUGET_EXE})

malaterre/GDCM Utilities/gdcmopenjpeg/cmake/JPIPTestDriver.cmake :3

file(DOWNLOAD
  "${D_URL}"
  "${D_FILE}"
  LOG log
  EXPECTED_MD5 "${EXPECTED_MD5}"
  )

cginternals/glbinding cmake/CheckTemplate.cmake :10

file(DOWNLOAD
    "https://api.github.com/repos/cginternals/cmake-init/commits/${APPLIED_CMAKE_INIT_BRANCH}"
    "${PROJECT_BINARY_DIR}/cmake-init.github.data"
)

glfw/glfw CMake/GenerateMappings.cmake :15

file(DOWNLOAD "${source_url}" "${source_path}"
     STATUS download_status
     TLS_VERIFY on)

cginternals/globjects cmake/CheckTemplate.cmake :6

file(DOWNLOAD
    "https://api.github.com/repos/cginternals/cmake-init/commits/master"
    "${PROJECT_BINARY_DIR}/cmake-init.github.data"
)

GreycLab/gmic cmake/FindCImg.cmake :18

file(DOWNLOAD ${HEADER_URL} ${HEADER_PATH} STATUS download_status)

GreycLab/gmic cmake/FindGMicStdlib.cmake :10

file(DOWNLOAD ${HEADER_URL} ${HEADER_PATH} STATUS download_status)

grpc/grpc cmake/download_archive.cmake :25

file(DOWNLOAD ${url} ${_TEMPORARY_FILE}
     TIMEOUT 60
     EXPECTED_HASH SHA256=${hash}
     TLS_VERIFY ON)

InsightSoftwareConsortium/ITK CMake/ExternalData.cmake :298

normally downloaded using the :command:`file(DOWNLOAD)` command.

InsightSoftwareConsortium/ITK CMake/ExternalData.cmake :951

file(DOWNLOAD "${url}" "${file}" STATUS status LOG log ${inactivity_timeout} ${absolute_timeout} SHOW_PROGRESS)

keepassxreboot/keepassxc src/CMakeLists.txt :568

file(DOWNLOAD "https://curl.se/ca/cacert.pem" "${CMAKE_BINARY_DIR}/ca-bundle.crt" TLS_VERIFY ON)

lammps/lammps cmake/Modules/Documentation.cmake :79

file(DOWNLOAD ${MATHJAX_URL} "${CMAKE_CURRENT_BINARY_DIR}/mathjax.tar.gz" STATUS DL_STATUS SHOW_PROGRESS)

lammps/lammps cmake/Modules/Documentation.cmake :83

file(DOWNLOAD ${MATHJAX_FALLBACK} ${CMAKE_BINARY_DIR}/libpace.tar.gz EXPECTED_HASH MD5=${MATHJAX_MD5} SHOW_PROGRESS)

lammps/lammps cmake/Modules/ExternalCMakeProject.cmake :17

file(DOWNLOAD ${url} ${CMAKE_BINARY_DIR}/_deps/${archive} STATUS DL_STATUS SHOW_PROGRESS)

lammps/lammps cmake/Modules/ExternalCMakeProject.cmake :23

file(DOWNLOAD ${fallback} ${CMAKE_BINARY_DIR}/_deps/${archive} EXPECTED_HASH MD5=${hash} SHOW_PROGRESS)

lammps/lammps cmake/Modules/LAMMPSUtils.cmake :160

file(DOWNLOAD "${LAMMPS_POTENTIALS_URL}/${pot}.${sum}" "${CMAKE_BINARY_DIR}/${pot}.${TMP_EXT}"
  EXPECTED_HASH MD5=${sum} SHOW_PROGRESS)

lammps/lammps cmake/Modules/Packages/ML-PACE.cmake :30

file(DOWNLOAD ${PACELIB_URL} ${CMAKE_BINARY_DIR}/libpace.tar.gz STATUS DL_STATUS SHOW_PROGRESS)

lammps/lammps cmake/Modules/Packages/ML-PACE.cmake :34

file(DOWNLOAD ${PACELIB_FALLBACK} ${CMAKE_BINARY_DIR}/libpace.tar.gz EXPECTED_HASH MD5=${PACELIB_MD5} SHOW_PROGRESS)

lammps/lammps cmake/packaging/build_windows_vs.cmake :25

file(DOWNLOAD "https://download.lammps.org/thirdparty/ffmpeg-gzip.zip" ffmpeg-gzip.zip)

lammps/lammps tools/lammps-gui/CMakeLists.txt :109

file(DOWNLOAD ${WHAM_URL} ${CMAKE_BINARY_DIR}/_deps/${archive} STATUS DL_STATUS SHOW_PROGRESS)

sbmlteam/libsbml dev/utilities/sboTree/updateSBO.cmake :49

file(DOWNLOAD "https://github.com/EBI-BioModels/SBO/raw/refs/heads/master/SBO_OBO.obo" "${SRC_DIR}/dev/utilities/sboTree/sbo-obo-flat.txt")

google/libultrahdr CMakeLists.txt :715

file(DOWNLOAD ${RES_URL} ${RES_FILE} STATUS result EXPECTED_MD5 ${RES_FILE_MD5SUM})

mosra/magnum package/hunter/HunterInit.cmake :30

file(DOWNLOAD
    https://raw.githubusercontent.com/hunter-packages/gate/c4e5b3e4d1c97fb46ae86af7f59baac95f7f1cf0/cmake/HunterGate.cmake
    ${_HUNTER_GATE_FILE}
    EXPECTED_HASH SHA1=b59156338f5722d6ef84321c8ccef5ecf2ac24e6
    STATUS _HUNTER_GATE_FILE_STATUS)

neocmakelsp/neocmakelsp assets_for_test/ast_test/nheko_test.cmake :649

file(DOWNLOAD
    "https://raw.githubusercontent.com/mohabouje/WinToast/v1.3.0/src/wintoastlib.cpp"
    ${PROJECT_SOURCE_DIR}/src/wintoastlib.cpp
    EXPECTED_HASH SHA256=1ddf8ee2604e1757d383a2f60d4d597c4f5d9496369e6a22586cedf4af77ca8f)

neocmakelsp/neocmakelsp assets_for_test/ast_test/nheko_test.cmake :654

file(DOWNLOAD
    "https://raw.githubusercontent.com/mohabouje/WinToast/v1.3.0/include/wintoastlib.h"
    ${PROJECT_SOURCE_DIR}/src/wintoastlib.h
    EXPECTED_HASH SHA256=08cb30d28db9c851d3d4259ae6108ce7dafa966957df6735a06cd55e0716fded)

neocmakelsp/neocmakelsp experiment_assets/nheko.cmake :673

file(DOWNLOAD
	"https://raw.githubusercontent.com/mohabouje/WinToast/41ed1c58d5dce0ee9c01dbdeac05be45358d4f57/src/wintoastlib.cpp"
	${PROJECT_SOURCE_DIR}/src/wintoastlib.cpp
	EXPECTED_HASH SHA256=1A1A7CE41C1052B12946798F4A6C67CE1FAD209C967F5ED4D720B173527E2073)

neocmakelsp/neocmakelsp experiment_assets/nheko.cmake :677

file(DOWNLOAD
	"https://raw.githubusercontent.com/mohabouje/WinToast/41ed1c58d5dce0ee9c01dbdeac05be45358d4f57/src/wintoastlib.h"
	${PROJECT_SOURCE_DIR}/src/wintoastlib.h
	EXPECTED_HASH SHA256=b4481023c5782733795838be22bf1a75f45d87458cd4d9a5a75f664a146eea11)

neocmakelsp/neocmakelsp experiment_assets/test3.cmake :609

file(DOWNLOAD
	"https://raw.githubusercontent.com/mohabouje/WinToast/41ed1c58d5dce0ee9c01dbdeac05be45358d4f57/src/wintoastlib.cpp"
	${PROJECT_SOURCE_DIR}/src/wintoastlib.cpp
	EXPECTED_HASH SHA256=1A1A7CE41C1052B12946798F4A6C67CE1FAD209C967F5ED4D720B173527E2073)

neocmakelsp/neocmakelsp experiment_assets/test3.cmake :613

file(DOWNLOAD
	"https://raw.githubusercontent.com/mohabouje/WinToast/41ed1c58d5dce0ee9c01dbdeac05be45358d4f57/src/wintoastlib.h"
	${PROJECT_SOURCE_DIR}/src/wintoastlib.h
	EXPECTED_HASH SHA256=b4481023c5782733795838be22bf1a75f45d87458cd4d9a5a75f664a146eea11)

neovim/neovim third-party/cmake/DownloadAndExtractFile.cmake :61

file(DOWNLOAD ${URL} ${file}
  ${timeout_args}
  ${hash_args}
  STATUS status
  LOG log)

YosysHQ/nextpnr 3rdparty/pybind11/tools/FindCatch.cmake :39

file(
  DOWNLOAD ${url} "${destination_dir}/catch.hpp"
  STATUS status
  LOG log)

paceholder/nodeeditor external/Catch2/CMakeLists.txt :2

file(DOWNLOAD https://raw.githubusercontent.com/catchorg/Catch2/v2.13.7/single_include/catch2/catch.hpp
  "${CMAKE_CURRENT_BINARY_DIR}/single_include/catch2/catch.hpp"
  EXPECTED_HASH SHA256=ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc
)

OGRECave/ogre ci-build.cmake :94

file(DOWNLOAD
    https://dl.google.com/android/repository/android-ndk-r25c-linux.zip
    ./android-ndk-r25c-linux.zip)

OGRECave/ogre CMake/Dependencies.cmake :89

file(DOWNLOAD
    https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz
    ${PROJECT_BINARY_DIR}/pugixml-1.14.tar.gz)

OGRECave/ogre CMake/Dependencies.cmake :104

file(DOWNLOAD
    https://download.savannah.gnu.org/releases/freetype/freetype-2.13.2.tar.gz
    ${PROJECT_BINARY_DIR}/freetype-2.13.2.tar.gz)

OGRECave/ogre CMake/Dependencies.cmake :131

file(DOWNLOAD
    https://libsdl.org/release/SDL2-2.32.4.tar.gz
    ${PROJECT_BINARY_DIR}/SDL2-2.32.4.tar.gz)

OGRECave/ogre CMake/Dependencies.cmake :149

file(DOWNLOAD
    https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
    ${PROJECT_BINARY_DIR}/zlib-1.3.1.tar.gz
    EXPECTED_HASH SHA256=9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23)

OGRECave/ogre CMake/Dependencies.cmake :163

file(DOWNLOAD
        https://github.com/assimp/assimp/archive/refs/tags/v6.0.2.tar.gz
    ${PROJECT_BINARY_DIR}/v6.0.2.tar.gz)

OGRECave/ogre CMake/Dependencies.cmake :182

file(DOWNLOAD
    https://github.com/bulletphysics/bullet3/archive/refs/tags/3.25.tar.gz
    ${PROJECT_BINARY_DIR}/3.25.tar.gz)

OGRECave/ogre Components/Overlay/CMakeLists.txt :25

file(DOWNLOAD
    https://github.com/ocornut/imgui/archive/v1.91.2.tar.gz
    ${PROJECT_BINARY_DIR}/imgui.tar.gz)

OGRECave/ogre Tests/CMakeLists.txt :15

file(DOWNLOAD
    https://github.com/google/googletest/releases/download/v1.16.0/googletest-1.16.0.tar.gz
    ${PROJECT_BINARY_DIR}/release-1.16.0.tar.gz)

openbabel/openbabel CMakeLists.txt :477

file(DOWNLOAD "https://github.com/schrodinger/maeparser/archive/${MAEPARSER_VERSION}.tar.gz"
    "${MAEPARSER_DIR}/maeparser-${MAEPARSER_VERSION}.tar.gz")

openbabel/openbabel CMakeLists.txt :535

file(DOWNLOAD "https://github.com/schrodinger/coordgenlibs/archive/${COORDGEN_VERSION}.tar.gz"
    "${COORDGEN_DIR}/coordgenlibs-${COORDGEN_VERSION}.tar.gz")

openbabel/openbabel CMakeLists.txt :581

file(DOWNLOAD "https://github.com/Tencent/rapidjson/archive/${RAPIDJSON_VERSION}.tar.gz"
  "${openbabel_SOURCE_DIR}/external/rapidjson-${RAPIDJSON_VERSION}.tar.gz" STATUS status)

BYVoid/OpenCC deps/pybind11-2.13.1/tools/FindCatch.cmake :39

file(
  DOWNLOAD ${url} "${destination_dir}/catch.hpp"
  STATUS status
  LOG log)

opencv/opencv cmake/OpenCVDownload.cmake :211

file(DOWNLOAD "${DL_URL}" "${CACHE_CANDIDATE}"
     STATUS status
     LOG __log
     ${OPENCV_DOWNLOAD_PARAMS})

opencv/opencv cmake/OpenCVDownload.cmake :261

# Don't remove this code, because EXPECTED_MD5 parameter doesn't fail "file(DOWNLOAD)" step on wrong hash

uclouvain/openjpeg cmake/JPIPTestDriver.cmake :3

file(DOWNLOAD
  "${D_URL}"
  "${D_FILE}"
  LOG log
  EXPECTED_MD5 "${EXPECTED_MD5}"
  )

AcademySoftwareFoundation/openvdb cmake/CPM.cmake :19

file(DOWNLOAD
     https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
     ${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM}
)

YosysHQ/prjtrellis libtrellis/3rdparty/pybind11/tools/FindCatch.cmake :39

file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)

pybind/pybind11 tools/FindCatch.cmake :39

file(
  DOWNLOAD ${url} "${destination_dir}/catch.hpp"
  STATUS status
  LOG log)

qgis/QGIS cmake/DownloadO2.cmake :24

file(DOWNLOAD ${_o2_url} ${_o2_dl_file}
   INACTIVITY_TIMEOUT ${_o2_dl_inactive_timeout}
   TIMEOUT ${_o2_dl_timeout}
   STATUS _o2_dl_status
   LOG _o2_dl_log
   #SHOW_PROGRESS
   EXPECTED_HASH SHA1=${_o2_dl_sha1}
   TLS_VERIFY on
   #TLS_CAINFO file
)

qgis/QGIS vcpkg/ports/qca/portfile.cmake :38

# Using file(DOWNLOAD) to use https

qgis/QGIS vcpkg/ports/qca/portfile.cmake :39

file(DOWNLOAD https://raw.githubusercontent.com/mozilla/gecko-dev/master/security/nss/lib/ckfw/builtins/certdata.txt
    "${CURRENT_BUILDTREES_DIR}/cert/certdata.txt"
    TLS_VERIFY ON
)

qt/qtgrpc examples/grpc/chat/client/CMakeLists.txt :69

file(DOWNLOAD ${font_url} ${font_path} SHOW_PROGRESS)

qt/qtgrpc tests/auto/protobuf/conformance/CMakeLists.txt :38

file(DOWNLOAD
    "${protobuf_github_base_url}/conformance/conformance.proto"
    "${CMAKE_CURRENT_BINARY_DIR}/conformance.proto"
    TIMEOUT 10
)

qt/qtgrpc tests/auto/protobuf/conformance/CMakeLists.txt :45

file(DOWNLOAD
    "${protobuf_github_base_url}/src/google/protobuf/test_messages_proto3.proto"
    "${CMAKE_CURRENT_BINARY_DIR}/test_messages_proto3.proto"
    TIMEOUT 10
)

raysan5/raylib src/external/glfw/CMake/GenerateMappings.cmake :13

file(DOWNLOAD "${source_url}" "${source_path}"
     STATUS download_status
     TLS_VERIFY on)

facebook/rocksdb java/CMakeLists.txt :623

file(DOWNLOAD ${DEPS_URL}/junit-${JAVA_JUNIT_VERSION}.jar ${JAVA_TMP_JAR} STATUS downloadStatus)

facebook/rocksdb java/CMakeLists.txt :633

file(DOWNLOAD ${DEPS_URL}/hamcrest-${JAVA_HAMCR_VERSION}.jar ${JAVA_TMP_JAR} STATUS downloadStatus)

facebook/rocksdb java/CMakeLists.txt :643

file(DOWNLOAD ${DEPS_URL}/mockito-all-${JAVA_MOCKITO_VERSION}.jar ${JAVA_TMP_JAR} STATUS downloadStatus)

facebook/rocksdb java/CMakeLists.txt :653

file(DOWNLOAD ${DEPS_URL}/cglib-${JAVA_CGLIB_VERSION}.jar ${JAVA_TMP_JAR} STATUS downloadStatus)

facebook/rocksdb java/CMakeLists.txt :663

file(DOWNLOAD ${DEPS_URL}/assertj-core-${JAVA_ASSERTJ_VERSION}.jar ${JAVA_TMP_JAR} STATUS downloadStatus)

ossia/score src/player/i-score-pd/CMakeLists.txt :14

file(DOWNLOAD "http://msp.ucsd.edu/Software/pd-0.47-1.msw.zip" "${CMAKE_CURRENT_BINARY_DIR}/pd.zip")

simdjson/simdjson cmake/CPM.cmake :19

file(DOWNLOAD
     https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
     ${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM}
)

Haivision/srt scripts/FindBotan.cmake :41

file(
    DOWNLOAD
    ${DOWNLOAD_URL}
    STATUS download_status
)

rollbear/trompeloeil test/CMakeLists.txt :25

file(
        DOWNLOAD
        https://github.com/catchorg/Catch2/releases/download/v2.13.7/catch.hpp  ${CATCH_DIR}/catch2/catch.hpp
        STATUS
        status
        LOG
        log
)

EttusResearch/uhd host/utils/CMakeLists.txt :114

file(DOWNLOAD
    "http://files.ettus.com/dd.exe"
    ${CMAKE_CURRENT_BINARY_DIR}/dd.exe
)

JuliaStrings/utf8proc CMakeLists.txt :89

file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/NormalizationTest.txt ${CMAKE_BINARY_DIR}/data/NormalizationTest.txt SHOW_PROGRESS)

JuliaStrings/utf8proc CMakeLists.txt :90

file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/auxiliary/GraphemeBreakTest.txt ${CMAKE_BINARY_DIR}/data/GraphemeBreakTest.txt SHOW_PROGRESS)

microsoft/vcpkg ports/qca/portfile.cmake :38

# Using file(DOWNLOAD) to use https

microsoft/vcpkg ports/qca/portfile.cmake :39

file(DOWNLOAD https://raw.githubusercontent.com/mozilla/gecko-dev/master/security/nss/lib/ckfw/builtins/certdata.txt
    "${CURRENT_BUILDTREES_DIR}/cert/certdata.txt"
    TLS_VERIFY ON
)

microsoft/vcpkg ports/stdexec/portfile.cmake :21

    [[file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-24.02/RAPIDS.cmake]]
    "file(COPY_FILE \"${SOURCE_PATH_RAPIDS}/RAPIDS.cmake\""
)

vcpkg_download_distfile(execution_bs
    URLS "https://raw.githubusercontent.com/cplusplus/sender-receiver/12fde4af201017e49efd39178126f661a04dbb94/execution.bs"
    FILENAME "execution.bs"
    SHA512 90bb992356f22e4091ed35ca922f6a0143abd748499985553c0660eaf49f88d031a8f900addb6b4cf9a39ac8d1ab7c858b79677e2459136a640b2c52afe3dd23
)
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" 
    [[file(DOWNLOAD "https://raw.githubusercontent.com/cplusplus/sender-receiver/main/execution.bs"]]
    "file(COPY_FILE \"${execution_bs}\""
)

# stdexec uses cpm (via rapids-cmake).
# Setup a local cpm cache from assets cached by vcpkg
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/cpm")
# Version from rapids-cmake cpm/detail/download.cmake
set(CPM_DOWNLOAD_VERSION 0.38.5)
vcpkg_download_distfile(CPM_CMAKE
    URLS https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
    FILENAME CPM_${CPM_DOWNLOAD_VERSION}.cmake
    SHA512 a376162be4fe70408c000409f7a3798e881ed183cb51d57c9540718fdd539db9028755653bd3965ae7764b5c3e36adea81e0752fe85e40790f022fa1c4668cc6
)
file(INSTALL "${CPM_CMAKE}" DESTINATION "${CURRENT_BUILDTREES_DIR}/cpm/cpm")

# Version and patch from stdexec CMakeLists.txt
vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH_ICM
    REPO iboB/icm
    REF v1.5.0 # from stdexec CMakeLists.txt
    SHA512 0d5173d7640e2b411dddfc67e1ee19c921817e58de36ea8325430ee79408edc0a23e17159e22dc4a05f169596ee866effa69e7cd0000b08f47bd090d5003ba1c
    HEAD_REF master
    PATCHES
        "${SOURCE_PATH}/cmake/cpm/patches/icm/regex-build-error.diff"
)

vcpkg_find_acquire_program(GIT)

vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DSTDEXEC_BUILD_TESTS=OFF
        -DSTDEXEC_BUILD_EXAMPLES=OFF
        "-DFETCHCONTENT_SOURCE_DIR_RAPIDS-CMAKE=${SOURCE_PATH_RAPIDS}"
        "-DCPM_SOURCE_CACHE=${CURRENT_BUILDTREES_DIR}/cpm"
        "-DCPM_icm_SOURCE=${SOURCE_PATH_ICM}"
        "-DGIT_EXECUTABLE=${GIT}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/stdexec)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

microsoft/vcpkg ports/stdexec/portfile.cmake :31

    [[file(DOWNLOAD "https://raw.githubusercontent.com/cplusplus/sender-receiver/main/execution.bs"]]
    "file(COPY_FILE \"${execution_bs}\""
)

# stdexec uses cpm (via rapids-cmake).
# Setup a local cpm cache from assets cached by vcpkg
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/cpm")
# Version from rapids-cmake cpm/detail/download.cmake
set(CPM_DOWNLOAD_VERSION 0.38.5)
vcpkg_download_distfile(CPM_CMAKE
    URLS https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
    FILENAME CPM_${CPM_DOWNLOAD_VERSION}.cmake
    SHA512 a376162be4fe70408c000409f7a3798e881ed183cb51d57c9540718fdd539db9028755653bd3965ae7764b5c3e36adea81e0752fe85e40790f022fa1c4668cc6
)
file(INSTALL "${CPM_CMAKE}" DESTINATION "${CURRENT_BUILDTREES_DIR}/cpm/cpm")

# Version and patch from stdexec CMakeLists.txt
vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH_ICM
    REPO iboB/icm
    REF v1.5.0 # from stdexec CMakeLists.txt
    SHA512 0d5173d7640e2b411dddfc67e1ee19c921817e58de36ea8325430ee79408edc0a23e17159e22dc4a05f169596ee866effa69e7cd0000b08f47bd090d5003ba1c
    HEAD_REF master
    PATCHES
        "${SOURCE_PATH}/cmake/cpm/patches/icm/regex-build-error.diff"
)

vcpkg_find_acquire_program(GIT)

vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DSTDEXEC_BUILD_TESTS=OFF
        -DSTDEXEC_BUILD_EXAMPLES=OFF
        "-DFETCHCONTENT_SOURCE_DIR_RAPIDS-CMAKE=${SOURCE_PATH_RAPIDS}"
        "-DCPM_SOURCE_CACHE=${CURRENT_BUILDTREES_DIR}/cpm"
        "-DCPM_icm_SOURCE=${SOURCE_PATH_ICM}"
        "-DGIT_EXECUTABLE=${GIT}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/stdexec)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

microsoft/vcpkg scripts/ports.cmake :249

file(DOWNLOAD "${URL}" "${DOWNLOAD_PATH}" STATUS download_status)

Viskores/viskores .gitlab/ci/config/ccache.cmake :53

file(DOWNLOAD
  "${full_url}" $ENV{CCACHE_INSTALL_DIR}/${tarball}
  EXPECTED_HASH SHA256=${sha256sum}
  SHOW_PROGRESS
  )

Viskores/viskores .gitlab/ci/config/ninja.cmake :38

file(DOWNLOAD
  "https://github.com/ninja-build/ninja/releases/download/v${version}/${tarball}" .gitlab/${tarball}
  EXPECTED_HASH SHA256=${sha256sum}
  SHOW_PROGRESS
  )

wxWidgets/wxWidgets build/cmake/lib/webview/CMakeLists.txt :63

file(DOWNLOAD
    ${WEBVIEW2_URL}
    ${CMAKE_CURRENT_BINARY_DIR}/webview2.nuget
    EXPECTED_HASH SHA256=${WEBVIEW2_SHA256}
    STATUS DOWNLOAD_RESULT)

wxWidgets/wxWidgets build/cmake/lib/webview_chromium/cef_update_version_info.cmake :25

file(DOWNLOAD "${CEF_BASE_URL}${CEF_VERSION}_${platform}${CEF_DISTRIBUTION}${CEF_FILE_EXT}.sha1" "${sha_file}")

tfussell/xlnt third-party/pybind11/tools/FindCatch.cmake :32

file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)

Z3Prover/z3 cmake/modules/FindDotnet.cmake :145

FILE(DOWNLOAD https://dist.nuget.org/win-x86-commandline/latest/nuget.exe ${NUGET_EXE})