[s1942] CMake: strip the trailing newline from ${GIT_RESULT}

(based on commit [12414] - 70c4f60)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>