yuzu/externals/vcpkg/scripts/cmake/vcpkg_replace_string.cmake

6 lines
217 B
CMake
Raw Normal View History

2022-07-23 05:01:36 +04:00
function(vcpkg_replace_string filename match replace)
file(READ "${filename}" contents)
string(REPLACE "${match}" "${replace}" contents "${contents}")
file(WRITE "${filename}" "${contents}")
endfunction()