x265 build system is based on cmake.
A particular script named Version.cmake should scan and find information about version of the lbrary and include those into the build, and in a statement it seeks for git:
find_package(Git QUIET)
Now, this never catches the git binary (I double checked: git is there, version 2.37.3 and when I remove that “QUIET” a string tells me git was not found) and the result is the version information is lost. How can I see how this script fails?
Further, into /boot/system/data/cmake/Modules I see a FindGit.cmake which gives:
cmake -P FindGit.cmake
-- Found Git: /bin/git (found version "2.37.3")
so, if I manage to replace that find_package command with this, it will surely find git.
How will I?