From f348546bd9fee8a82ad14f5583430fe65f960458 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Feb 2019 01:05:52 +0100 Subject: cmake: improve quotemeta for C --- cmake/opentrack-hier.cmake | 4 ++-- 1 file 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") -- cgit v1.2.3