libarchive: Build with iconv to handle entry path encoding

Issue: #26903
This commit is contained in:
Brad King
2026-01-22 10:24:46 -05:00
committed by Alex Overchenko
parent 24cb39e081
commit 0435b76095
2 changed files with 12 additions and 1 deletions

View File

@@ -294,7 +294,11 @@ else()
set(ENABLE_WIN32_XMLLITE OFF)
set(ENABLE_XATTR OFF)
set(ENABLE_ACL OFF)
set(ENABLE_ICONV OFF)
if(WIN32)
set(ENABLE_ICONV OFF)
else()
set(ENABLE_ICONV ON)
endif()
set(ENABLE_TEST OFF)
set(ENABLE_COVERAGE OFF)
set(ENABLE_INSTALL OFF)

View File

@@ -1200,6 +1200,13 @@ IF(ENABLE_ICONV)
ENDIF(HAVE_ICONV)
ENDIF(NOT HAVE_ICONV AND LIBICONV_PATH)
ENDIF(ICONV_INCLUDE_DIR)
# XXX(cmake): iconv is required on non-Windows platforms
if(NOT HAVE_ICONV AND NOT WIN32)
message(FATAL_ERROR "iconv is required, but was not found.")
endif()
# XXX(cmake): end
#
# Find locale_charset() for libiconv.
#