summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-10 01:05:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-10 01:50:50 +0100
commitf348546bd9fee8a82ad14f5583430fe65f960458 (patch)
tree0f0d32c02088d06a94bb130ee817cc75a46b92bf /cmake
parent23857dc1e8a0aee2a1ce3b53d06bb724e47b90a7 (diff)
cmake: improve quotemeta for C
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-hier.cmake4
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")