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
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
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"))) -
>
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
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
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
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
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