mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 17:18:18 +00:00
libarchive: Build with iconv to handle entry path encoding
Issue: #26903
This commit is contained in:
committed by
Alex Overchenko
parent
24cb39e081
commit
0435b76095
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user