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

6 lines
217 B
CMake
Raw Normal View History

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