option(XML_UNICODE "Use UTF-16 encoded chars (two bytes) instead of UTF-8" OFF)
option(XML_UNICODE_WCHAR_T "Use wchar_t to represent UTF-16 instead of unsigned short" OFF)
option(XML_ATTR_INFO "Define to allow retrieving the byte offsets for attribute names and values" OFF)
+option(XML_LARGE_SIZE "Make XML_GetCurrent* functions return <(unsigned) long long> rather than <(unsigned) long>" OFF)
if(MSVC)
set(MSVC_USE_STATIC_CRT OFF CACHE BOOL "Use /MT flag (static CRT) when compiling in MSVC")
endif()
expat_bool_to_int(XML_ATTR_INFO)
expat_bool_to_int(XML_DTD)
+expat_bool_to_int(XML_LARGE_SIZE)
expat_bool_to_int(XML_NS)
expat_bool_to_int(XML_UNICODE)
expat_bool_to_int(XML_UNICODE_WCHAR_T)
+if(XML_LARGE_SIZE)
+ add_definitions(-DXML_LARGE_SIZE)
+endif()
+
if(XML_UNICODE_WCHAR_T AND NOT XML_UNICODE)
message(SEND_ERROR "Option XML_UNICODE_WCHAR_T=ON may not be used without XML_UNICODE=ON.")
set(XML_UNICODE 1)
message(STATUS " Attributes info .......... ${XML_ATTR_INFO}")
message(STATUS " Context bytes ............ ${XML_CONTEXT_BYTES}")
message(STATUS " DTD support .............. ${XML_DTD}")
+message(STATUS " Large size ............... ${XML_LARGE_SIZE}")
message(STATUS " Namespace support ........ ${XML_NS}")
message(STATUS "")
message(STATUS " Entropy sources")
#239 #277 CMake: Add arguments
-DUSE_GETRANDOM=(ON|OFF|AUTO)
-DUSE_SYS_GETRANDOM=(ON|OFF|AUTO)
+ CMake: Add argument -DXML_LARGE_SIZE=ON
CMake: Install expat_config.h to include directory
CMake: Now produces a summary of applied configuration
CMake: Require C++ compiler only when tests are enabled