CMake: Re-model char type components for usability
This commit is contained in:
parent
5a0df05f53
commit
93431f0a8e
@ -53,8 +53,19 @@ _register_component(dtd @EXPAT_DTD@)
|
||||
_register_component(large_size @EXPAT_LARGE_SIZE@)
|
||||
_register_component(min_size @EXPAT_MIN_SIZE@)
|
||||
_register_component(ns @EXPAT_NS@)
|
||||
_register_component(unicode @_EXPAT_UNICODE@)
|
||||
_register_component(unicode_wchar_t @_EXPAT_UNICODE_WCHAR_T@)
|
||||
if("@EXPAT_CHAR_TYPE@" STREQUAL "char")
|
||||
_register_component(char ON)
|
||||
_register_component(ushort OFF)
|
||||
_register_component(wchar_t OFF)
|
||||
elseif("@EXPAT_CHAR_TYPE@" STREQUAL "ushort")
|
||||
_register_component(char OFF)
|
||||
_register_component(ushort ON)
|
||||
_register_component(wchar_t OFF)
|
||||
elseif("@EXPAT_CHAR_TYPE@" STREQUAL "wchar_t")
|
||||
_register_component(char OFF)
|
||||
_register_component(ushort OFF)
|
||||
_register_component(wchar_t ON)
|
||||
endif()
|
||||
|
||||
check_required_components(expat)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user