From 7b2a994559c27db9672c9bc5731f176f48864111 Mon Sep 17 00:00:00 2001 From: Sofie Date: Tue, 17 Sep 2024 15:25:23 +0200 Subject: [PATCH] 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/ --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21bf152..322317c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()