annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/cmake/expat-2.6.4/expat.cmake @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 # Generated by CMake
jpayne@69 2
jpayne@69 3 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
jpayne@69 4 message(FATAL_ERROR "CMake >= 2.8.0 required")
jpayne@69 5 endif()
jpayne@69 6 if(CMAKE_VERSION VERSION_LESS "2.8.12")
jpayne@69 7 message(FATAL_ERROR "CMake >= 2.8.12 required")
jpayne@69 8 endif()
jpayne@69 9 cmake_policy(PUSH)
jpayne@69 10 cmake_policy(VERSION 2.8.12...3.28)
jpayne@69 11 #----------------------------------------------------------------
jpayne@69 12 # Generated CMake target import file.
jpayne@69 13 #----------------------------------------------------------------
jpayne@69 14
jpayne@69 15 # Commands may need to know the format version.
jpayne@69 16 set(CMAKE_IMPORT_FILE_VERSION 1)
jpayne@69 17
jpayne@69 18 # Protect against multiple inclusion, which would fail when already imported targets are added once more.
jpayne@69 19 set(_cmake_targets_defined "")
jpayne@69 20 set(_cmake_targets_not_defined "")
jpayne@69 21 set(_cmake_expected_targets "")
jpayne@69 22 foreach(_cmake_expected_target IN ITEMS expat::expat)
jpayne@69 23 list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
jpayne@69 24 if(TARGET "${_cmake_expected_target}")
jpayne@69 25 list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
jpayne@69 26 else()
jpayne@69 27 list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
jpayne@69 28 endif()
jpayne@69 29 endforeach()
jpayne@69 30 unset(_cmake_expected_target)
jpayne@69 31 if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
jpayne@69 32 unset(_cmake_targets_defined)
jpayne@69 33 unset(_cmake_targets_not_defined)
jpayne@69 34 unset(_cmake_expected_targets)
jpayne@69 35 unset(CMAKE_IMPORT_FILE_VERSION)
jpayne@69 36 cmake_policy(POP)
jpayne@69 37 return()
jpayne@69 38 endif()
jpayne@69 39 if(NOT _cmake_targets_defined STREQUAL "")
jpayne@69 40 string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
jpayne@69 41 string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
jpayne@69 42 message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
jpayne@69 43 endif()
jpayne@69 44 unset(_cmake_targets_defined)
jpayne@69 45 unset(_cmake_targets_not_defined)
jpayne@69 46 unset(_cmake_expected_targets)
jpayne@69 47
jpayne@69 48
jpayne@69 49 # Compute the installation prefix relative to this file.
jpayne@69 50 get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
jpayne@69 51 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
jpayne@69 52 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
jpayne@69 53 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
jpayne@69 54 if(_IMPORT_PREFIX STREQUAL "/")
jpayne@69 55 set(_IMPORT_PREFIX "")
jpayne@69 56 endif()
jpayne@69 57
jpayne@69 58 # Create imported target expat::expat
jpayne@69 59 add_library(expat::expat SHARED IMPORTED)
jpayne@69 60
jpayne@69 61 set_target_properties(expat::expat PROPERTIES
jpayne@69 62 INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
jpayne@69 63 INTERFACE_LINK_LIBRARIES "m"
jpayne@69 64 )
jpayne@69 65
jpayne@69 66 # Load information for each installed configuration.
jpayne@69 67 file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/expat-*.cmake")
jpayne@69 68 foreach(_cmake_config_file IN LISTS _cmake_config_files)
jpayne@69 69 include("${_cmake_config_file}")
jpayne@69 70 endforeach()
jpayne@69 71 unset(_cmake_config_file)
jpayne@69 72 unset(_cmake_config_files)
jpayne@69 73
jpayne@69 74 # Cleanup temporary variables.
jpayne@69 75 set(_IMPORT_PREFIX)
jpayne@69 76
jpayne@69 77 # Loop over all imported files and verify that they actually exist
jpayne@69 78 foreach(_cmake_target IN LISTS _cmake_import_check_targets)
jpayne@69 79 if(CMAKE_VERSION VERSION_LESS "3.28"
jpayne@69 80 OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
jpayne@69 81 OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
jpayne@69 82 foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
jpayne@69 83 if(NOT EXISTS "${_cmake_file}")
jpayne@69 84 message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
jpayne@69 85 \"${_cmake_file}\"
jpayne@69 86 but this file does not exist. Possible reasons include:
jpayne@69 87 * The file was deleted, renamed, or moved to another location.
jpayne@69 88 * An install or uninstall procedure did not complete successfully.
jpayne@69 89 * The installation package was faulty and contained
jpayne@69 90 \"${CMAKE_CURRENT_LIST_FILE}\"
jpayne@69 91 but not all the files it references.
jpayne@69 92 ")
jpayne@69 93 endif()
jpayne@69 94 endforeach()
jpayne@69 95 endif()
jpayne@69 96 unset(_cmake_file)
jpayne@69 97 unset("_cmake_import_check_files_for_${_cmake_target}")
jpayne@69 98 endforeach()
jpayne@69 99 unset(_cmake_target)
jpayne@69 100 unset(_cmake_import_check_targets)
jpayne@69 101
jpayne@69 102 # This file does not depend on other imported targets which have
jpayne@69 103 # been exported from the same project but in a separate export set.
jpayne@69 104
jpayne@69 105 # Commands beyond this point should not need to know the version.
jpayne@69 106 set(CMAKE_IMPORT_FILE_VERSION)
jpayne@69 107 cmake_policy(POP)