Add HEAD to cmake

URL taken from http://www.cmake.org/Wiki/CMake/Git.