mirror of
https://github.com/libjxl/libjxl.git
synced 2026-10-28 10:15:22 +08:00
Override brotli "no-install" policy.
This commit is contained in:
1 parent
bf084cea76
commit
43323c0000
1 file changed
+4
Vendored
+4
@@ -61,6 +61,10 @@ if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/brotli/c/include/brotli/decode.h" OR
|
||||
else()
|
||||
# Compile brotli from sources.
|
||||
set(BROTLI_DISABLE_TESTS ON CACHE STRING "Disable Brotli tests")
|
||||
# Override default "no-install" policy.
|
||||
if((NOT SANITIZER STREQUAL "asan") AND (NOT SANITIZER STREQUAL "msan"))
|
||||
set(BROTLI_BUNDLED_MODE OFF CACHE INTERNAL "")
|
||||
endif()
|
||||
add_subdirectory(brotli EXCLUDE_FROM_ALL)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/brotli/LICENSE"
|
||||
${PROJECT_BINARY_DIR}/LICENSE.brotli COPYONLY)
|
||||
|
||||
Reference in new issue
Block a user