CMakeLists.txt: removed unneccessary checks