Skip to content

Use string(APPEND) in Modules

Daniel Pfeifer requested to merge purpleKarrot/cmake:string-append into master

Automate with:

find Modules -type f -print0 | xargs -0 perl -i -0pe \
  's/set\(([a-zA-Z0-9_\$\{\}]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'

This was done before, but this time we also cover places where the variable name contains ${}.

Merge request reports