Skip to content

file download issues related to TLS #685

@G4m4

Description

@G4m4

Hi!

On multiple repos relying on CPM for their dependencies I sometimes (on Windows computers only) struggle to download the content of the file CPM.cmake

The main symptom is this typical error during the configure step: Unknown CMake command "CPMAddPackage"

But it actually comes from the fact that the downloading of the file as done in get_cpm.cmake failed.
When retrieving the status of

  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}
    STATUS DOWNLOAD_STATUS
  )

${DOWNLOAD_STATUS} will contain 35;"SSL connect error"

Although I have not investigating the root cause for the TLS issue as on WIndows it might become tricky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions