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. > > The failed lines

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

2019-08-30 Thread Craig Scott
On Sat, Aug 31, 2019 at 12:36 AM Eugene Karpov wrote: > 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

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

2019-08-30 Thread Kyle Edwards via cmake-developers
On Fri, 2019-08-30 at 19:01 +0300, Eugene Karpov wrote: > Not working too. > The failed lines in a generated make file looks like this > --- > CMakeFiles/mkflags_test: >         /usr/bin/cmake -DDEFINITIONS=- > DAPI=__attribute__((visibility("default"))) - >

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

2019-08-30 Thread Eugene Karpov
Not working too. The failed lines in a generated make file looks like this --- CMakeFiles/mkflags_test: /usr/bin/cmake -DDEFINITIONS=-DAPI=__attribute__((visibility("default"))) -DFILENAME=/home/ekarpov/tmp/build/flags.txt -P /home/ekarpov/tmp/escape_quotes.cmake

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

2019-08-30 Thread Brad King via cmake-developers
On 8/30/19 10:36 AM, Eugene Karpov wrote: > use it later for precompiled header generation. FYI, CMake 3.16 will have first-class support for PCH: https://gitlab.kitware.com/cmake/cmake/merge_requests/3553 -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the

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

2019-08-30 Thread Kyle Edwards via cmake-developers
On Fri, 2019-08-30 at 17:54 +0300, Eugene Karpov wrote: > I've tried this. But then it fails to compile due to `INTERFACE > API=${API_EXPORT_MACRO}` target compile definition. Ah right, you want the file contents to be escaped while the compile flags are not. My next suggestion was going to be 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 project. On Ubuntu I

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

2019-08-30 Thread Kyle Edwards via cmake-developers
On Fri, 2019-08-30 at 17:36 +0300, Eugene Karpov wrote: > 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