annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/cmake/expat-2.6.4/expat-config.cmake @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 # __ __ _
jpayne@68 2 # ___\ \/ /_ __ __ _| |_
jpayne@68 3 # / _ \\ /| '_ \ / _` | __|
jpayne@68 4 # | __// \| |_) | (_| | |_
jpayne@68 5 # \___/_/\_\ .__/ \__,_|\__|
jpayne@68 6 # |_| XML parser
jpayne@68 7 #
jpayne@68 8 # Copyright (c) 2019 Expat development team
jpayne@68 9 # Licensed under the MIT license:
jpayne@68 10 #
jpayne@68 11 # Permission is hereby granted, free of charge, to any person obtaining
jpayne@68 12 # a copy of this software and associated documentation files (the
jpayne@68 13 # "Software"), to deal in the Software without restriction, including
jpayne@68 14 # without limitation the rights to use, copy, modify, merge, publish,
jpayne@68 15 # distribute, sublicense, and/or sell copies of the Software, and to permit
jpayne@68 16 # persons to whom the Software is furnished to do so, subject to the
jpayne@68 17 # following conditions:
jpayne@68 18 #
jpayne@68 19 # The above copyright notice and this permission notice shall be included
jpayne@68 20 # in all copies or substantial portions of the Software.
jpayne@68 21 #
jpayne@68 22 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
jpayne@68 23 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
jpayne@68 24 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
jpayne@68 25 # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
jpayne@68 26 # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
jpayne@68 27 # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
jpayne@68 28 # USE OR OTHER DEALINGS IN THE SOFTWARE.
jpayne@68 29 #
jpayne@68 30 if(NOT _expat_config_included)
jpayne@68 31 # Protect against multiple inclusion
jpayne@68 32 set(_expat_config_included TRUE)
jpayne@68 33
jpayne@68 34
jpayne@68 35 include("${CMAKE_CURRENT_LIST_DIR}/expat.cmake")
jpayne@68 36
jpayne@68 37
jpayne@68 38 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
jpayne@68 39 ####### Any changes to this file will be overwritten by the next CMake run ####
jpayne@68 40 ####### The input file was expat-config.cmake.in ########
jpayne@68 41
jpayne@68 42 get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
jpayne@68 43
jpayne@68 44 macro(set_and_check _var _file)
jpayne@68 45 set(${_var} "${_file}")
jpayne@68 46 if(NOT EXISTS "${_file}")
jpayne@68 47 message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
jpayne@68 48 endif()
jpayne@68 49 endmacro()
jpayne@68 50
jpayne@68 51 macro(check_required_components _NAME)
jpayne@68 52 foreach(comp ${${_NAME}_FIND_COMPONENTS})
jpayne@68 53 if(NOT ${_NAME}_${comp}_FOUND)
jpayne@68 54 if(${_NAME}_FIND_REQUIRED_${comp})
jpayne@68 55 set(${_NAME}_FOUND FALSE)
jpayne@68 56 endif()
jpayne@68 57 endif()
jpayne@68 58 endforeach()
jpayne@68 59 endmacro()
jpayne@68 60
jpayne@68 61 ####################################################################################
jpayne@68 62
jpayne@68 63 #
jpayne@68 64 # Supported components
jpayne@68 65 #
jpayne@68 66 macro(expat_register_component _NAME _AVAILABE)
jpayne@68 67 set(expat_${_NAME}_FOUND ${_AVAILABE})
jpayne@68 68 endmacro()
jpayne@68 69
jpayne@68 70 expat_register_component(attr_info OFF)
jpayne@68 71 expat_register_component(dtd ON)
jpayne@68 72 expat_register_component(large_size OFF)
jpayne@68 73 expat_register_component(min_size OFF)
jpayne@68 74 expat_register_component(ns ON)
jpayne@68 75
jpayne@68 76 if(1024)
jpayne@68 77 expat_register_component(context_bytes ON)
jpayne@68 78 else()
jpayne@68 79 expat_register_component(context_bytes OFF)
jpayne@68 80 endif()
jpayne@68 81
jpayne@68 82 if("char" STREQUAL "char")
jpayne@68 83 expat_register_component(char ON)
jpayne@68 84 expat_register_component(ushort OFF)
jpayne@68 85 expat_register_component(wchar_t OFF)
jpayne@68 86 elseif("char" STREQUAL "ushort")
jpayne@68 87 expat_register_component(char OFF)
jpayne@68 88 expat_register_component(ushort ON)
jpayne@68 89 expat_register_component(wchar_t OFF)
jpayne@68 90 elseif("char" STREQUAL "wchar_t")
jpayne@68 91 expat_register_component(char OFF)
jpayne@68 92 expat_register_component(ushort OFF)
jpayne@68 93 expat_register_component(wchar_t ON)
jpayne@68 94 endif()
jpayne@68 95
jpayne@68 96 check_required_components(expat)
jpayne@68 97
jpayne@68 98
jpayne@68 99 endif(NOT _expat_config_included)