<div dir="ltr">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.<div>Thank you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 30 авг. 2019 г. в 20:24, Kyle Edwards <<a href="mailto:kyle.edwards@kitware.com">kyle.edwards@kitware.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 2019-08-30 at 19:01 +0300, Eugene Karpov wrote:<br>
> Not working too.<br>
> The failed lines in a generated make file looks like this<br>
> -----------------------<br>
> CMakeFiles/mkflags_test:<br>
>         /usr/bin/cmake -DDEFINITIONS=-<br>
> DAPI=__attribute__((visibility("default"))) -<br>
> DFILENAME=/home/ekarpov/tmp/build/flags.txt -P<br>
> /home/ekarpov/tmp/escape_quotes.cmake<br>
> -----------------------<br>
> <br>
> And I've tried to double quote the DEFINITIONS parameter that is<br>
> passed to cmake - didn't help.<br>
<br>
Please try adding the VERBATIM option to add_custom_target():<br>
<br>
<a href="https://cmake.org/cmake/help/latest/command/add_custom_target.html" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/latest/command/add_custom_target.html</a><br>
<br>
Kyle<br>
</blockquote></div>