[Qt-interest] overriding QMAKE

Lorenzo Bettini bettini at dsi.unifi.it
Sun May 17 12:50:34 CEST 2009


Hi

I'm trying to override the QMAKE variable (so that I can put in the 
Makefile a customized command line), but it doesn't work...

I'm doing this:

PASSED_QMAKE=$$(QMAKE)
message(value of PASSED_QMAKE: $$PASSED_QMAKE)

!isEmpty( PASSED_QMAKE ) {
message(overriding QMAKE)
QMAKE=$$(QMAKE)
}

message(value of QMAKE: $$QMAKE)

and if I run

QMAKE="PKG_CONFIG_PATH=/home/bettini/usr/local/lib/pkgconfig/ qmake-qt4" 
PKG_CONFIG_PATH=/home/bettini/usr/local/lib/pkgconfig/ qmake-qt4

I get

Project MESSAGE: value of PASSED_QMAKE: 
PKG_CONFIG_PATH=/home/bettini/usr/local/lib/pkgconfig/ qmake-qt4
Project MESSAGE: overriding QMAKE
Project MESSAGE: value of QMAKE: 
PKG_CONFIG_PATH=/home/bettini/usr/local/lib/pkgconfig/ qmake-qt4

but in the generated Makefile I end up having

QMAKE = "/usr/bin/qmake-qt4"

what am I doing wrong?

thanks in advance
	Lorenzo

-- 
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




More information about the Qt-interest-old mailing list