Skip to content

Commit

Permalink
Fix CMake's EscapeRegex fn
Browse files Browse the repository at this point in the history
Must have got broken when tidying up #1085 and missed in review.
  • Loading branch information
Robadob committed Jul 27, 2023
1 parent 8198a5f commit 1a56502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/EscapeRegex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
function(escape_regex IN_STRING OUT_VAR)
# https://gitlab.kitware.com/cmake/cmake/-/issues/18580#note_483128
string(REGEX REPLACE "([][+.*()^])" "\\\\\\1" OUT_STRING "${IN_STRING}")
set(${OUT_VAR} "${OUT_VAR}" PARENT_SCOPE)
set(${OUT_VAR} "${OUT_STRING}" PARENT_SCOPE)
endfunction()

0 comments on commit 1a56502

Please sign in to comment.