[Qt-interest] qmake and per-file QMAKE_CXXFLAGS?

Dave Thorup lists at kuwan.net
Mon Feb 23 22:51:03 CET 2009


On Feb 23, 2009, at 3:26 PM, andrew.m.goth at l-3com.com wrote:

> I don't know how to do this with qmake, but with ordinary make you can
> use per-rule variables.
>
> CXXFLAGS += -O3
> file1.o file2.o: CXXFLAGS += -msse2

Yes, it's fairly easy to do with normal make but we've got a very  
large project that is configured via qmake for Mac, Windows and  
Linux.  It would be nice if we could do all we needed in qmake.  We  
might just resort to running a script to modify the makefile that's  
generated by qmake but if it's possible to do it in qmake then it  
would make life much easier.

Dave




More information about the Qt-interest-old mailing list