fix: mangled url for FetchContent in cmake 3.16 (#176)

Fixes #174

Seems to be that older versions of CMake has a tendency to mangle URLs
as per described in https://stackoverflow.com/questions/74996365/
This commit is contained in:
Sofie 2024-09-17 15:25:23 +02:00 committed by GitHub
parent 06eb15bda6
commit 54a3e6fdf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,9 +422,9 @@ if(CPPTRACE_GET_SYMBOLS_WITH_LIBDWARF)
set(ZSTD_LEGACY_SUPPORT OFF)
FetchContent_Declare(
zstd
URL "${CPPTRACE_ZSTD_URL}"
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
SOURCE_SUBDIR build/cmake
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
URL "${CPPTRACE_ZSTD_URL}"
)
FetchContent_MakeAvailable(zstd)
endif()