[cmake-developers] escape double quote in generated file

2019-08-30 Thread Eugene Karpov
Hello all, I'm working on a cross platform project. On Ubuntu I would like to save all the compiler options, definitions and other complier related stuff to a generated file to use it later for precompiled header generation. My issue is that I have to specify a macro that contain double quotes

Re: [cmake-developers] escape double quote in generated file

2019-08-30 Thread Eugene Karpov
otes.cmake --- And I've tried to double quote the DEFINITIONS parameter that is passed to cmake - didn't help. пт, 30 авг. 2019 г. в 18:15, Kyle Edwards : > On Fri, 2019-08-30 at 17:54 +0300, Eugene Karpov wrote: > > I've tried this. But then it fails to compile due to

Re: [cmake-developers] escape double quote in generated file

2019-08-30 Thread Eugene Karpov
I've tried this. But then it fails to compile due to `INTERFACE API=${API_EXPORT_MACRO}` target compile definition. пт, 30 авг. 2019 г. в 17:49, Kyle Edwards : > On Fri, 2019-08-30 at 17:36 +0300, Eugene Karpov wrote: > > Hello all, > > > > I'm working on a cross platform

Re: [cmake-developers] escape double quote in generated file

2019-09-02 Thread Eugene Karpov
Yes, verbatim works to escape double quotes, but it doesn't work for join by '\n' in the generated make file. So I switched to join by space. Thank you. пт, 30 авг. 2019 г. в 20:24, Kyle Edwards : > On Fri, 2019-08-30 at 19:01 +0300, Eugene Karpov wrote: > > Not working too. > > T