From b7713a4718241a7a78c0967d697e5722adaf4321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szczepan=20=C4=86wikli=C5=84ski?= Date: Wed, 4 Dec 2024 23:05:45 +0100 Subject: [PATCH] Help finding Brotli headers when doing VMR build under FreeBSD (#110079) * Find to help Brotli headers when doing VMR build under FreeBSD * Use existing approach * Use CLR_CMAKE_HOST_FREEBSD --- src/native/libs/System.IO.Compression.Native/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/native/libs/System.IO.Compression.Native/CMakeLists.txt b/src/native/libs/System.IO.Compression.Native/CMakeLists.txt index e13e1271809b1..5df69d109c387 100644 --- a/src/native/libs/System.IO.Compression.Native/CMakeLists.txt +++ b/src/native/libs/System.IO.Compression.Native/CMakeLists.txt @@ -18,6 +18,9 @@ if (NOT CLR_CMAKE_TARGET_BROWSER AND NOT CLR_CMAKE_TARGET_WASI) if (CLR_CMAKE_USE_SYSTEM_BROTLI) add_definitions(-DFEATURE_USE_SYSTEM_BROTLI) + if (CLR_CMAKE_HOST_FREEBSD) + set(CMAKE_REQUIRED_INCLUDES ${CROSS_ROOTFS}/usr/local/include) + endif() else () include(${CLR_SRC_NATIVE_DIR}/external/brotli.cmake)