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 Jeremy Rifkin
parent 0ddbbf43cb
commit 7b2a994559
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -425,9 +425,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()