[12417] 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
[12418] CMake: strip the trailing newline from ${GIT_RESULT}