diff --git a/CMakeLists.txt b/CMakeLists.txt index a0fe76c244..49a44eabf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -525,7 +525,7 @@ if(CURL_BROTLI) find_package(Brotli QUIET) if(BROTLI_FOUND) set(HAVE_BROTLI ON) - list(PREPEND CURL_LIBS ${BROTLI_LIBRARIES}) + set(CURL_LIBS "${BROTLI_LIBRARIES};${CURL_LIBS}") # For 'ld' linker. Emulate `list(PREPEND ...)` to stay compatible with