[Interest] Fwd: Defining a string in qmake command line

Soroush Rabiei soroush.rabiei at gmail.com
Fri Jan 24 20:55:17 CET 2014


On Fri, Jan 24, 2014 at 8:42 PM, Thiago Macieira
<thiago.macieira at intel.com>wrote:

> On sexta-feira, 24 de janeiro de 2014 14:18:59, Francisco Ares wrote:
> > Is it really needed to enclose the string?
> >
> > What will it happens if you just do
> >
> > DEFINES += SERIAL=6b6ab0
>
> He'll need to strigify the macro before using it.


I'll be happy with simple stringifier macros if it's considered to be more
cross-platform (works from various shells etc.)

Maybe something like this:

#define DO_QUOTE(X)       #X
#define QUOTE(X) DO_QUOTE(X)

(Taken from this answer on SO: http://stackoverflow.com/a/3959495/275221)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140124/9abf4b8d/attachment.html>


More information about the Interest mailing list