pineapple-src/externals/vcpkg/scripts/cmake/vcpkg_replace_string.cmake

6 lines
217 B
CMake
Raw Normal View History

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