Fix some unused lines in CMakeLists