#-----------------------------------------------------------------------------
# H4H5 Version file for install directory
#-----------------------------------------------------------------------------

set (PACKAGE_VERSION @H4H5_PACKAGE_VERSION@)

if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @H4H5_VERS_MAJOR@)

  # exact match for version @H4H5_VERS_MAJOR@.@H4H5_VERS_MINOR@
  if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @H4H5_VERS_MINOR@)

    # compatible with any version @H4H5_VERS_MAJOR@.@H4H5_VERS_MINOR@.x
    set (PACKAGE_VERSION_COMPATIBLE 1) 
    
    if ("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @H4H5_VERS_RELEASE@)
      set (PACKAGE_VERSION_EXACT 1)    

      if ("${PACKAGE_FIND_VERSION_TWEAK}" EQUAL @H4H5_VERS_SUBRELEASE@)
        # not using this yet
      endif ()

    endif ()

  endif ()
endif ()


