diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 01:05:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 01:50:50 +0100 |
commit | f348546bd9fee8a82ad14f5583430fe65f960458 (patch) | |
tree | 0f0d32c02088d06a94bb130ee817cc75a46b92bf | |
parent | 23857dc1e8a0aee2a1ce3b53d06bb724e47b90a7 (diff) |
cmake: improve quotemeta for C
-rw-r--r-- | cmake/opentrack-hier.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-hier.cmake b/cmake/opentrack-hier.cmake index e3eeab11..950bfefb 100644 --- a/cmake/opentrack-hier.cmake +++ b/cmake/opentrack-hier.cmake @@ -42,8 +42,8 @@ else() endif() function(otr_escape_string var str) - string(REGEX REPLACE "([\$\\\"#])" "\\\\\\1" tmp__ "${str}") - set(${var} "${tmp__}" PARENT_SCOPE) + string(REGEX REPLACE "([^_A-Za-z0-9./:-])" "\\\\\\1" str "${str}") + set(${var} "${str}" PARENT_SCOPE) endfunction() set(opentrack-contrib-pfx "${opentrack-doc-pfx}/contrib") |