Reimplement short hash in CMake
!685 (merged) changed to use full git hashes instead of shorter ones. This MR moves back to printing the shorter versions of the hashes.
!685 (merged) changed to use full git hashes instead of shorter ones. This MR moves back to printing the shorter versions of the hashes.