[Interest] qmake: Test if environment variable is set.

Thiago Macieira thiago.macieira at intel.com
Wed May 27 09:10:19 CEST 2015


On Wednesday 27 May 2015 09:03:24 Carel Combrink wrote:
> Am I doing something wrong?

Yes, you're expecting qmake to observe environment variables. It does not. 
Make honours and processes them, but that's run after qmake has finished 
running and has written the Makefile. Two separate and independent steps.

> Is this intended behaviour?

Yes.

> How can I proceed to get the correct result?

You cannot with qmake. You need to either make the variable a pure qmake one 
by passing it on the qmake command-line instead of the environment, or you 
skip doing the qmake checks and rely on Make rules only.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list