From dc475095bb6639af7934c115d986e2db7a9ea8a6 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 11 Nov 2024 14:54:11 -0800 Subject: [PATCH] Don't try looking up locations for system brotli. Rely on the distro maintainer to set the paths correctly. Fixes https://github.com/dotnet/runtime/issues/109105 --- src/native/libs/System.IO.Compression.Native/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/native/libs/System.IO.Compression.Native/CMakeLists.txt b/src/native/libs/System.IO.Compression.Native/CMakeLists.txt index ede9632bc5e81..5fe4bc2e169f6 100644 --- a/src/native/libs/System.IO.Compression.Native/CMakeLists.txt +++ b/src/native/libs/System.IO.Compression.Native/CMakeLists.txt @@ -6,10 +6,7 @@ if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB) include(${CLR_SRC_NATIVE_DIR}/external/zlib-ng.cmake) endif() -if (CLR_CMAKE_USE_SYSTEM_BROTLI) - find_package(PkgConfig REQUIRED) - pkg_check_modules(BROTLI REQUIRED brotlidec brotlienc brotlicommon) -else() +if(NOT CLR_CMAKE_USE_SYSTEM_BROTLI) include(${CLR_SRC_NATIVE_DIR}/external/brotli.cmake) endif()