Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,289
    • Issues 3,289
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #21545

Closed
Open
Created Dec 03, 2020 by ferkulat@ferkulat

FetchContent URl https:// does not work on windows10

The following does not download anything

Set(KEYCLOAK_VERSION 11.0.3)
Set(KEYCLOAK_ZIP keycloak-${KEYCLOAK_VERSION}.zip)

include(FetchContent)
FetchContent_Declare(
        thirdparty_keycloak
        URL      https://downloads.jboss.org/keycloak/${KEYCLOAK_VERSION}/${KEYCLOAK_ZIP}
        URL_HASH SHA1=0aef7b2d54503943675d53c7ab9143dd3da79a43
)

I need to use the following to download the file:

include(FindWget)
include(FetchContent)
FetchContent_Declare(
        thirdparty_keycloak
        DOWNLOAD_COMMAND ${WGET_EXECUTABLE}      https://downloads.jboss.org/keycloak/${KEYCLOAK_VERSION}/${KEYCLOAK_ZIP}
        URL_HASH SHA1=0aef7b2d54503943675d53c7ab9143dd3da79a43
)

But when using DOWNLOAD_COMMAND, I need to write additional code within FetchContent_Populate to check SHAsum and to extract.

Edited Dec 03, 2020 by ferkulat
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None