]> granicus.if.org Git - curl/commitdiff
cmake: Fix finding Brotli on case-sensitive file systems
authoraasivov <aasivov@users.noreply.github.com>
Wed, 17 Jul 2019 06:01:45 +0000 (02:01 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 17 Jul 2019 06:03:29 +0000 (02:03 -0400)
- 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

CMakeLists.txt

index 388f790dbb3dbe3ba86e37ddfe756084f81985ff..29cb5f5984bf07f0ac62159574b421ce25ab92a7 100644 (file)
@@ -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})