Skip to content

Commit 4e115a1

Browse files
MichalPetrykabagder
authored andcommitted
cmake: stop CMake from quietly ignoring missing Brotli
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 curl#11376
1 parent 55dfb9e commit 4e115a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ endif()
524524
option(CURL_BROTLI "Set to ON to enable building curl with brotli support." OFF)
525525
set(HAVE_BROTLI OFF)
526526
if(CURL_BROTLI)
527-
find_package(Brotli QUIET)
527+
find_package(Brotli REQUIRED)
528528
if(BROTLI_FOUND)
529529
set(HAVE_BROTLI ON)
530530
set(CURL_LIBS "${BROTLI_LIBRARIES};${CURL_LIBS}") # For 'ld' linker. Emulate `list(PREPEND ...)` to stay compatible with <v3.15 CMake.

0 commit comments

Comments
 (0)