From d23cf77cd088256489769adde4390f367c4d6e77 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 23 Dec 2025 20:10:59 -0500 Subject: [PATCH] Resolve #2313 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7566dcd..6baed49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,6 +185,8 @@ elseif(HTTPLIB_USE_BROTLI_IF_AVAILABLE) set(HTTPLIB_IS_USING_BROTLI ${Brotli_FOUND}) endif() +# NOTE: When using cpp-httplib as a subproject (e.g., via FetchContent), the zstd::libzstd target may not be visible in the parent project scope. +# If you encounter a "target not found" error, see https://github.com/yhirose/cpp-httplib/issues/2313 for a workaround. if(HTTPLIB_REQUIRE_ZSTD) find_package(zstd) if(NOT zstd_FOUND)