]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: stop CMake from quietly ignoring missing Brotli
authorMichał Petryka <35800402+MichalPetryka@users.noreply.github.com>
Thu, 22 Jun 2023 19:30:43 +0000 (21:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Jun 2023 08:40:05 +0000 (10:40 +0200)
The CMake project was set to `QUIET` for Brotli instead of
`REQUIRED`. This makes builds unexpectedly ignore missing Brotli even
when `CURL_BROTLI` is enabled.

Closes #11376

CMakeLists.txt

index dba2b0fd570f96eae01c0d018bb640f34283702c..babc500867bc8f5fa2172c45be0256c45eef082f 100644 (file)
@@ -524,7 +524,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 REQUIRED)
   if(BROTLI_FOUND)
     set(HAVE_BROTLI ON)
     set(CURL_LIBS "${BROTLI_LIBRARIES};${CURL_LIBS}")  # For 'ld' linker. Emulate `list(PREPEND ...)` to stay compatible with <v3.15 CMake.