@PACKAGE_INIT@

set(RMQ_USES_OPENSSL @ENABLE_SSL_SUPPORT@)

include(CMakeFindDependencyMacro)

if (RMQ_USES_OPENSSL)
  find_dependency(OpenSSL REQUIRED)
  if(OPENSSL_VERSION)
    if(OPENSSL_VERSION VERSION_LESS RMQ_OPENSSL_MIN_VERSION)
      MESSAGE(FATAL_ERROR "Found OpenSSL version @OPENSSL_VERSION@ but @RMQ_OPENSSL_MIN_VERSION@ or later is required")
    endif()
  endif()
endif ()

include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake)
check_required_components(rabbitmq-c)
