pineapple-src/externals/vcpkg/scripts/cmake/vcpkg_replace_string.cmake
2022-07-23 03:01:36 +02:00

5 lines
217 B
CMake
Executable file

function(vcpkg_replace_string filename match replace)
file(READ "${filename}" contents)
string(REPLACE "${match}" "${replace}" contents "${contents}")
file(WRITE "${filename}" "${contents}")
endfunction()