[CMake] Remove meaningless conditional statements in CMakeLists.txt