replace custom with generated version cmake config