D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] c++ preprocessor passing strings

 

On Feb 4, 2008 5:35 PM, Neil Williams <linux@xxxxxxxxxxxxxx> wrote:

> Include the quotes in the variable:
> (in Makefile.am)
>
> AM_CFLAGS = \
>  -I.. -I../.. \
>  ${PISOCK_CFLAGS} \
>  -DLOCALE_DIR=\""$(datadir)/locale"\"
>
> (in the source code)
>   bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
>

No automake on this job :-)

I have cmake which can pass parameters in its own way but I could not
for the life of me get quotes to make it all the way through even with
escaping.

Thanks anyway, my final solution is in my other reply

Regards

Robin

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html