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