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
&
@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&
- 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
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="$"
.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
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
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