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.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information