From 0b77356d2c421cc23263f3af5cf30415d4b1866a Mon Sep 17 00:00:00 2001 From: lizzie Date: Wed, 15 Oct 2025 00:28:17 +0000 Subject: [PATCH] [cmake] fix brotli::* on freebsd Signed-off-by: lizzie --- CMakeModules/Findhttplib.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeModules/Findhttplib.cmake b/CMakeModules/Findhttplib.cmake index 48967add96..22d2c0e5b3 100644 --- a/CMakeModules/Findhttplib.cmake +++ b/CMakeModules/Findhttplib.cmake @@ -4,7 +4,11 @@ include(FindPackageHandleStandardArgs) -find_package(httplib QUIET CONFIG) +# FreeBSD has errors with Brotli::*, same with Solaris (when httplib of +# system is installed) +if (WIN32 OR ANDROID OR APPLE OR LINUX) + find_package(httplib QUIET CONFIG) +endif() if (httplib_CONSIDERED_CONFIGS) find_package_handle_standard_args(httplib HANDLE_COMPONENTS CONFIG_MODE) else()