summaryrefslogtreecommitdiffstats
path: root/cmake/SearchReplace.cmake
blob: 116cd71369000b3f529e8a1e349d2b8b68422dcf (plain)
1
2
3
4
message("Replacing ${search} by ${replace} in file ${src} and writing to ${dst}...")
file(READ ${src} file_contents)
string(REPLACE "${search}" "${replace}" file_contents ${file_contents})
file(WRITE ${dst} ${file_contents})