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)