DuneReplaceProperties¶
Utility functions to modify CMake properties by applying regular-expression based replacements.
- replace_properties¶
Replace property values on global, directory, target, source, test, or cache scopes.
replace_properties( <regex> <replacement>... [GLOBAL] [DIRECTORY [<dir>]] [PROPERTY <property>] [TARGET <targets>...] [SOURCE <sources>...] [TEST <tests>...] [CACHE <entries>...] )
<regex> <replacement>...One or more pairs of regular expressions and replacement strings. Every matching property entry is replaced by the corresponding replacement.
GLOBALOperate on a global property.
DIRECTORYOperate on a directory property. Without an explicit directory argument, the current directory is used.
PROPERTYName of the property to update.
TARGETOne or more target names whose property should be modified.
SOURCEOne or more source file names whose property should be modified.
TESTOne or more test names whose property should be modified.
CACHEOne or more cache entries whose property should be modified.
If the selected property is not set yet, replacement strings are inserted as the initial property value. Duplicate property entries are removed after processing.