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 <kyle.edwa...@kitware.com>:

> 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"))) -
> > DFILENAME=/home/ekarpov/tmp/build/flags.txt -P
> > /home/ekarpov/tmp/escape_quotes.cmake
> > -----------------------
> >
> > And I've tried to double quote the DEFINITIONS parameter that is
> > passed to cmake - didn't help.
>
> Please try adding the VERBATIM option to add_custom_target():
>
> https://cmake.org/cmake/help/latest/command/add_custom_target.html
>
> Kyle
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers

Reply via email to