Usage of both GITCOMMAND and GIT_EXECUTABLE to point to git executable
I realized that CMake sometimes uses the CMake variable GIT_EXECUTABLE (for example in Modules/FindGit.cmake
), but in a few other instances, it uses GITCOMMAND (such as in Modules/CTest.cmake
). Is it a bug or is it the desired behavior?
I found this discrepancy after configuring a project where both GIT_EXECUTABLE and GITCOMMAND were visible in CMake-GUI (with mark_as_advanced checked).