annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/cmake/libssh2/Libssh2Config.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.5)
jpayne@69 4 message(FATAL_ERROR "CMake >= 2.6.0 required")
jpayne@69 5 endif()
jpayne@69 6 cmake_policy(PUSH)
jpayne@69 7 cmake_policy(VERSION 2.6)
jpayne@69 8 #----------------------------------------------------------------
jpayne@69 9 # Generated CMake target import file.
jpayne@69 10 #----------------------------------------------------------------
jpayne@69 11
jpayne@69 12 # Commands may need to know the format version.
jpayne@69 13 set(CMAKE_IMPORT_FILE_VERSION 1)
jpayne@69 14
jpayne@69 15 # Protect against multiple inclusion, which would fail when already imported targets are added once more.
jpayne@69 16 set(_targetsDefined)
jpayne@69 17 set(_targetsNotDefined)
jpayne@69 18 set(_expectedTargets)
jpayne@69 19 foreach(_expectedTarget Libssh2::libssh2)
jpayne@69 20 list(APPEND _expectedTargets ${_expectedTarget})
jpayne@69 21 if(NOT TARGET ${_expectedTarget})
jpayne@69 22 list(APPEND _targetsNotDefined ${_expectedTarget})
jpayne@69 23 endif()
jpayne@69 24 if(TARGET ${_expectedTarget})
jpayne@69 25 list(APPEND _targetsDefined ${_expectedTarget})
jpayne@69 26 endif()
jpayne@69 27 endforeach()
jpayne@69 28 if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
jpayne@69 29 unset(_targetsDefined)
jpayne@69 30 unset(_targetsNotDefined)
jpayne@69 31 unset(_expectedTargets)
jpayne@69 32 set(CMAKE_IMPORT_FILE_VERSION)
jpayne@69 33 cmake_policy(POP)
jpayne@69 34 return()
jpayne@69 35 endif()
jpayne@69 36 if(NOT "${_targetsDefined}" STREQUAL "")
jpayne@69 37 message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
jpayne@69 38 endif()
jpayne@69 39 unset(_targetsDefined)
jpayne@69 40 unset(_targetsNotDefined)
jpayne@69 41 unset(_expectedTargets)
jpayne@69 42
jpayne@69 43
jpayne@69 44 # Compute the installation prefix relative to this file.
jpayne@69 45 get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
jpayne@69 46 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
jpayne@69 47 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
jpayne@69 48 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
jpayne@69 49 if(_IMPORT_PREFIX STREQUAL "/")
jpayne@69 50 set(_IMPORT_PREFIX "")
jpayne@69 51 endif()
jpayne@69 52
jpayne@69 53 # Create imported target Libssh2::libssh2
jpayne@69 54 add_library(Libssh2::libssh2 SHARED IMPORTED)
jpayne@69 55
jpayne@69 56 set_target_properties(Libssh2::libssh2 PROPERTIES
jpayne@69 57 INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
jpayne@69 58 )
jpayne@69 59
jpayne@69 60 # Load information for each installed configuration.
jpayne@69 61 get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
jpayne@69 62 file(GLOB CONFIG_FILES "${_DIR}/Libssh2Config-*.cmake")
jpayne@69 63 foreach(f ${CONFIG_FILES})
jpayne@69 64 include(${f})
jpayne@69 65 endforeach()
jpayne@69 66
jpayne@69 67 # Cleanup temporary variables.
jpayne@69 68 set(_IMPORT_PREFIX)
jpayne@69 69
jpayne@69 70 # Loop over all imported files and verify that they actually exist
jpayne@69 71 foreach(target ${_IMPORT_CHECK_TARGETS} )
jpayne@69 72 foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
jpayne@69 73 if(NOT EXISTS "${file}" )
jpayne@69 74 message(FATAL_ERROR "The imported target \"${target}\" references the file
jpayne@69 75 \"${file}\"
jpayne@69 76 but this file does not exist. Possible reasons include:
jpayne@69 77 * The file was deleted, renamed, or moved to another location.
jpayne@69 78 * An install or uninstall procedure did not complete successfully.
jpayne@69 79 * The installation package was faulty and contained
jpayne@69 80 \"${CMAKE_CURRENT_LIST_FILE}\"
jpayne@69 81 but not all the files it references.
jpayne@69 82 ")
jpayne@69 83 endif()
jpayne@69 84 endforeach()
jpayne@69 85 unset(_IMPORT_CHECK_FILES_FOR_${target})
jpayne@69 86 endforeach()
jpayne@69 87 unset(_IMPORT_CHECK_TARGETS)
jpayne@69 88
jpayne@69 89 # This file does not depend on other imported targets which have
jpayne@69 90 # been exported from the same project but in a separate export set.
jpayne@69 91
jpayne@69 92 # Commands beyond this point should not need to know the version.
jpayne@69 93 set(CMAKE_IMPORT_FILE_VERSION)
jpayne@69 94 cmake_policy(POP)