1message("Replacing ${search} by ${replace} in file ${src} and writing to ${dst}...")
2file(READ ${src} file_contents)
3string(REPLACE "${search}" "${replace}" file_contents ${file_contents})
4file(WRITE ${dst} ${file_contents})
5