Modify cmake process to update a source file before building