[Solved] qmake: test for emptiness (environment variable)
Yes another bottle thrown here, with few hopes to find a solution...
I'm trying to figure out how to check if an environment variable is set or not. Here is a test .pro that I'm using (ran my tests on Windows):
@_A = $(FOO)
Project MESSAGE: not empty@
To bad, cause to me _A is really empty (FOO is not any exported variable).
The operator for fetching environment variables when qmake is run is the $$(...) operator.
Thank you very much, it works indeed. What was confusing me is that @message ($(FOO))@ outputs @Project Message: <foo content>@