[x265] [X265] [Patch] [Master, Release 3.5 branches] Fix: avoid unnecessary lexicographic order checks on git changesets leading to cmake errors

Srikanth Kurapati srikanth.kurapati at multicorewareinc.com
Sat Dec 19 16:31:19 UTC 2020


Please skip this patch.

On Wed, Dec 16, 2020 at 2:39 PM Srikanth Kurapati <
srikanth.kurapati at multicorewareinc.com> wrote:

> From a92be8c6b1e1a4cf5ba1f3b58518b860fcea38bc Mon Sep 17 00:00:00 2001
> From: Srikanth Kurapati <srikanth.kurapati at multicorewareinc.com>
> Date: Wed, 16 Dec 2020 10:52:33 +0530
> Subject: [PATCH] fix: avoids unnecessary lexicographic order checks on git
>  changesets
>
> ---
>  source/cmake/Version.cmake | 12 ++----------
>  1 file changed, 2 insertions(+), 10 deletions(-)
>
> diff --git a/source/cmake/Version.cmake b/source/cmake/Version.cmake
> index 37c759268..bd7a04dcf 100644
> --- a/source/cmake/Version.cmake
> +++ b/source/cmake/Version.cmake
> @@ -174,17 +174,9 @@ if(X265_TAG_DISTANCE STREQUAL "0")
>          message(WARNING "REPO AND RELEASE CHANGESETS NOT MATCHING")
>      endif()
>  elseif(X265_TAG_DISTANCE STRGREATER "0")
> -    if(X265_REVISION_ID STRLESS X265_REPO_ID)
> -        set(X265_VERSION
> "${X265_LATEST_TAG}+${X265_TAG_DISTANCE}-${X265_REVISION_ID}")
> -    else()
> -        message(WARNING "ARCCHIVE TIP CHANGESET TO BE GREATER THAN
> REVISION ID")
> -    endif()
> +    set(X265_VERSION
> "${X265_LATEST_TAG}+${X265_TAG_DISTANCE}-${X265_REVISION_ID}")
>  elseif(X265_TAG_DISTANCE STRLESS "0")
> -    if(X265_REVISION_ID STRGREATER X265_REPO_ID)
> -       set(X265_VERSION
> "${X265_LATEST_TAG}${X265_TAG_DISTANCE}+${X265_REPO_ID}")
> -    else()
> -        message(WARNING "REVISION ID EXPECTED TO BE LARGER THAN ARCHIVE
> TIP CHANGESET")
> -    endif()
> +    set(X265_VERSION
> "${X265_LATEST_TAG}${X265_TAG_DISTANCE}+${X265_REPO_ID}")
>  else()
>      message(ERROR "Inappropriate set of version information")
>  endif()
> --
> 2.20.1.windows.1
>
>
> --
> *With Regards,*
> *Srikanth Kurapati.*
>


-- 
*With Regards,*
*Srikanth Kurapati.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20201219/a562dedd/attachment.html>


More information about the x265-devel mailing list