[s1935] minor CMake cleanup

- execute the CMake version check as the first thing in CMakeLists.txt
- simplify check for out of source build
- removed some unused and commented code

(based on commit [12407] - b775c74)

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