<div dir="ltr">From 1983a69a00424bed9f66b34bddf09cd2165b31c1 Mon Sep 17 00:00:00 2001<br>From: Srikanth Kurapati <<a href="mailto:srikanth.kurapati@multicorewareinc.com">srikanth.kurapati@multicorewareinc.com</a>><br>Date: Thu, 31 Dec 2020 16:35:27 +0530<br>Subject: [PATCH] Fixes cmake backward compatibility issues for version control<br> script<br><br>---<br> source/cmake/Version.cmake | 6 +++---<br> 1 file changed, 3 insertions(+), 3 deletions(-)<br><br>diff --git a/source/cmake/Version.cmake b/source/cmake/Version.cmake<br>index a3988d3..3bbf42f 100644<br>--- a/source/cmake/Version.cmake<br>+++ b/source/cmake/Version.cmake<br>@@ -48,7 +48,7 @@ if(HG_EXECUTABLE)<br>     endif()<br> endif(HG_EXECUTABLE)<br> find_package(Git QUIET) #No restrictions on Git versions used, any versions from 1.8.x to 2.2.x or later should do.<br>-if(Git_FOUND)<br>+if(GIT_FOUND)<br>     find_program(GIT_EXECUTABLE git)<br>     message(STATUS "GIT_EXECUTABLE ${GIT_EXECUTABLE}")<br>     if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.git)<br>@@ -56,7 +56,7 @@ if(Git_FOUND)<br>     elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../x265Version.txt)<br>         set(GIT_ARCHETYPE "1")<br>     endif()<br>-endif(Git_FOUND)<br>+endif(GIT_FOUND)<br> if(HG_ARCHETYPE)<br>     #Read the lines of the archive summary file to extract the version<br>     message(STATUS "SOURCE CODE IS FROM x265 HG ARCHIVED ZIP OR TAR BALL")<br>@@ -122,7 +122,7 @@ elseif(GIT_ARCHETYPE)<br>         set(X265_LATEST_TAG ${git_releasetag})<br>         if(DEFINED git_releasetagdistance)<br>             set(X265_TAG_DISTANCE ${git_releasetagdistance})<br>-            if(X265_TAG_DISTANCE STRGREATER_EQUAL "0")<br>+            if(X265_TAG_DISTANCE STRGREATER "0" OR X265_TAG_DISTANCE STREQUAL "0")<br>                 #for x265 the repository changeset has to be a tag id or commit id after the tag<br>                 #hence mandating it's presence in version file always for valid tag distances.<br>                 if(DEFINED git_repositorychangeset)<br>-- <br>1.8.3.1<br><br><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b style="background-color:rgb(255,255,255)"><font color="#0b5394">With Regards,</font></b><div><b style="background-color:rgb(255,255,255)"><font color="#0b5394">Srikanth Kurapati.</font></b></div></div></div></div>