-----Original Message-----
From: Giuseppe D'Angelo [mailto:[email protected]] 
Sent: Wednesday, March 04, 2015 9:10 AM
To: Scott Aron Bloom
Cc: [email protected]
Subject: Re: [Interest] Is there a command line call to qmake to test the bit 
width?

On 4 March 2015 at 18:05, Scott Aron Bloom <[email protected]> wrote:
> I am creating two versions of my tool, 32 and 64 bit.  However, I 
> have, more than once, started a build against the wrong path, so it 
> was building against Qt 64 when it was supposed to build against Qt 32 
> (or vice versa)
>
>
>
> Is there a qmake or some way, that in the setup scripts to my build, I 
> can confirm the version I am running against?

In qmake see $$QT_ARCH, in your C++ file you can use QT_POINTER_SIZE.

HTH,
--


By then its too late.. I want the shell script that calls the make system to 
fail, saying you have the qmake setup wrong...

Its really only an issue when linking, since it will pick up the wrong 
libraries.
 
Scott
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to