Skip to content

Commit

Permalink
Help finding Brotli headers when doing VMR build under FreeBSD (#110079)
Browse files Browse the repository at this point in the history
* Find to help Brotli headers when doing VMR build under FreeBSD

* Use existing approach

* Use CLR_CMAKE_HOST_FREEBSD
  • Loading branch information
sec authored Dec 4, 2024
1 parent 2cdfd0a commit b7713a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b7713a4

Please sign in to comment.