Re: [CMake] configure_file: escaping (single) quotes

2018-01-09 Thread Franck Houssen
OK. Got it to work ! Thanks - Mail original - > De: "Marc CHEVRIER" <marc.chevr...@sap.com> > À: "Franck Houssen" <franck.hous...@inria.fr> > Cc: "CMake Mail List" <cmake@cmake.org> > Envoyé: Mardi 9 Janvier 2018 11:26:55 &

Re: [CMake] configure_file: escaping (single) quotes

2018-01-09 Thread CHEVRIER, Marc
@sap.com> Cc: CMake Mail List <cmake@cmake.org> Subject: Re: [CMake] configure_file: escaping (single) quotes De: "Marc CHEVRIER" <marc.chevr...@sap.com> À: "Franck Houssen" <franck.hous...@inria.fr>, "CMake Mail List&

Re: [CMake] configure_file: escaping (single) quotes

2018-01-09 Thread Franck Houssen
- Mail original - De: "Marc CHEVRIER" <marc.chevr...@sap.com> À: "Franck Houssen" <franck.hous...@inria.fr>, "CMake Mail List" <cmake@cmake.org> Envoyé: Mardi 9 Janvier 2018 10:29:30 Objet: Re: [CMake] configure_file: escaping

Re: [CMake] configure_file: escaping (single) quotes

2018-01-09 Thread J Decker
On Tue, Jan 9, 2018 at 1:29 AM, J Decker wrote: > > > On Tue, Jan 9, 2018 at 1:24 AM, Franck Houssen > wrote: > >> Hello, >> >> I need configure_file to produce a bash file containing this line: >> VAR="${VAR//*'*#*'*/}" >> >> > maybe > > VAR="$"

Re: [CMake] configure_file: escaping (single) quotes

2018-01-09 Thread CHEVRIER, Marc
.fr> Date: Tuesday 9 January 2018 at 10:24 To: CMake Mail List <cmake@cmake.org> Subject: [CMake] configure_file: escaping (single) quotes VAR="${VAR//'#'/}" -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake

Re: [CMake] configure_file: escaping (single) quotes

2018-01-09 Thread J Decker
On Tue, Jan 9, 2018 at 1:24 AM, Franck Houssen wrote: > Hello, > > I need configure_file to produce a bash file containing this line: > VAR="${VAR//*'*#*'*/}" > > maybe VAR="$" "{VAR//*'*#*'*/}" > I tried without success VAR="${VAR//*'*#*'*/}" and

[CMake] configure_file: escaping (single) quotes

2018-01-09 Thread Franck Houssen
Hello, I need configure_file to produce a bash file containing this line: VAR="${VAR// ' # ' /}" I tried without success VAR="${VAR// ' # ' /}" and VAR="${VAR// \' # \' /}" with and without ESCAPE_QUOTES in configure_file : always get an error like "Syntax error in cmake code when parsing