jpayne@68: # __ __ _ jpayne@68: # ___\ \/ /_ __ __ _| |_ jpayne@68: # / _ \\ /| '_ \ / _` | __| jpayne@68: # | __// \| |_) | (_| | |_ jpayne@68: # \___/_/\_\ .__/ \__,_|\__| jpayne@68: # |_| XML parser jpayne@68: # jpayne@68: # Copyright (c) 2019 Expat development team jpayne@68: # Licensed under the MIT license: jpayne@68: # jpayne@68: # Permission is hereby granted, free of charge, to any person obtaining jpayne@68: # a copy of this software and associated documentation files (the jpayne@68: # "Software"), to deal in the Software without restriction, including jpayne@68: # without limitation the rights to use, copy, modify, merge, publish, jpayne@68: # distribute, sublicense, and/or sell copies of the Software, and to permit jpayne@68: # persons to whom the Software is furnished to do so, subject to the jpayne@68: # following conditions: jpayne@68: # jpayne@68: # The above copyright notice and this permission notice shall be included jpayne@68: # in all copies or substantial portions of the Software. jpayne@68: # jpayne@68: # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, jpayne@68: # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF jpayne@68: # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN jpayne@68: # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, jpayne@68: # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR jpayne@68: # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE jpayne@68: # USE OR OTHER DEALINGS IN THE SOFTWARE. jpayne@68: # jpayne@68: if(NOT _expat_config_included) jpayne@68: # Protect against multiple inclusion jpayne@68: set(_expat_config_included TRUE) jpayne@68: jpayne@68: jpayne@68: include("${CMAKE_CURRENT_LIST_DIR}/expat.cmake") jpayne@68: jpayne@68: jpayne@68: ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### jpayne@68: ####### Any changes to this file will be overwritten by the next CMake run #### jpayne@68: ####### The input file was expat-config.cmake.in ######## jpayne@68: jpayne@68: get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) jpayne@68: jpayne@68: macro(set_and_check _var _file) jpayne@68: set(${_var} "${_file}") jpayne@68: if(NOT EXISTS "${_file}") jpayne@68: message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") jpayne@68: endif() jpayne@68: endmacro() jpayne@68: jpayne@68: macro(check_required_components _NAME) jpayne@68: foreach(comp ${${_NAME}_FIND_COMPONENTS}) jpayne@68: if(NOT ${_NAME}_${comp}_FOUND) jpayne@68: if(${_NAME}_FIND_REQUIRED_${comp}) jpayne@68: set(${_NAME}_FOUND FALSE) jpayne@68: endif() jpayne@68: endif() jpayne@68: endforeach() jpayne@68: endmacro() jpayne@68: jpayne@68: #################################################################################### jpayne@68: jpayne@68: # jpayne@68: # Supported components jpayne@68: # jpayne@68: macro(expat_register_component _NAME _AVAILABE) jpayne@68: set(expat_${_NAME}_FOUND ${_AVAILABE}) jpayne@68: endmacro() jpayne@68: jpayne@68: expat_register_component(attr_info OFF) jpayne@68: expat_register_component(dtd ON) jpayne@68: expat_register_component(large_size OFF) jpayne@68: expat_register_component(min_size OFF) jpayne@68: expat_register_component(ns ON) jpayne@68: jpayne@68: if(1024) jpayne@68: expat_register_component(context_bytes ON) jpayne@68: else() jpayne@68: expat_register_component(context_bytes OFF) jpayne@68: endif() jpayne@68: jpayne@68: if("char" STREQUAL "char") jpayne@68: expat_register_component(char ON) jpayne@68: expat_register_component(ushort OFF) jpayne@68: expat_register_component(wchar_t OFF) jpayne@68: elseif("char" STREQUAL "ushort") jpayne@68: expat_register_component(char OFF) jpayne@68: expat_register_component(ushort ON) jpayne@68: expat_register_component(wchar_t OFF) jpayne@68: elseif("char" STREQUAL "wchar_t") jpayne@68: expat_register_component(char OFF) jpayne@68: expat_register_component(ushort OFF) jpayne@68: expat_register_component(wchar_t ON) jpayne@68: endif() jpayne@68: jpayne@68: check_required_components(expat) jpayne@68: jpayne@68: jpayne@68: endif(NOT _expat_config_included)