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

6 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()