Removing unneded cmake functions