diff options
Diffstat (limited to 'scripts/cmake/vcpkg_replace_string.cmake')
| -rw-r--r-- | scripts/cmake/vcpkg_replace_string.cmake | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/cmake/vcpkg_replace_string.cmake b/scripts/cmake/vcpkg_replace_string.cmake index 3eb18d0bf..d24b8677e 100644 --- a/scripts/cmake/vcpkg_replace_string.cmake +++ b/scripts/cmake/vcpkg_replace_string.cmake @@ -1,12 +1,14 @@ -#.rst: -# .. command:: vcpkg_replace_string -# -# Replace a string in a file. -# -# :: -# vcpkg_replace_string(filename match_string replace_string) -# -# +#[===[.md: +# vcpkg_replace_string + +Replace a string in a file. + +```cmake +vcpkg_replace_string(filename match_string replace_string) +``` + +#]===] + function(vcpkg_replace_string filename match_string replace_string) file(READ ${filename} _contents) string(REPLACE "${match_string}" "${replace_string}" _contents "${_contents}") |
