From: aasivov Date: Wed, 17 Jul 2019 06:01:45 +0000 (-0400) Subject: cmake: Fix finding Brotli on case-sensitive file systems X-Git-Tag: curl-7_65_2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2527eca91e768e5192a77c1721d02b0ffc253df2;p=curl cmake: Fix finding Brotli on case-sensitive file systems - Find package "Brotli" instead of "BROTLI" since the former is the casing used for CMake/FindBrotli.cmake, and otherwise find_package may fail on a case-sensitive file system. Fixes https://github.com/curl/curl/issues/4117 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 388f790db..29cb5f598 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -530,7 +530,7 @@ endif() option(CURL_BROTLI "Set to ON to enable building curl with brotli support." OFF) set(HAVE_BROTLI OFF) if(CURL_BROTLI) - find_package(BROTLI QUIET) + find_package(Brotli QUIET) if(BROTLI_FOUND) set(HAVE_BROTLI ON) list(APPEND CURL_LIBS ${BROTLI_LIBRARIES})