Deleting extra lines in CMakeLists.txt which create problems in metapackages