[12413] CMake cleanup

* remove unused code
* add TODOs
* move all options to one place
* add all options to the information output
* mark most output as STATUS
[12414] CMake: strip the trailing newline from ${GIT_RESULT}