Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Replace a string in a file.
Usage
vcpkg_replace_string(<filename> <match> <replace> [REGEX] [IGNORE_UNCHANGED])
Parameters
<filename>
The path to the file to modify.
<match>
The string to match.
<replace>
The string to replace all matched sequences with.
[REGEX]
If this argument is present, the <match>
argument is treated as a regular expression.
[IGNORE_UNCHANGED]
Disable the warning if the file is not changed.
Source
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.