Thiago,

> MY_ENV_VAR_TEST=$$(MY_ENV_VAR)
> > isEmpty(MY_ENV_VAR_TEST) {
> >     error("The env var MY_ENV_VAR must be set when enabling this
> library")
> > }
> >
> > *PS: Is there a better way to check if an environmental variable is set
> > using qmake that is cross platform for Linux, Windows and Mac? *
>
> The above should work. If you were having problems, say what they were.


Thanks, no issue so far, just wanted to find out if there was another way.

requires() with a false predicate does not interrupt execution. It creates a
> Makefile that doesn't do anything.
>
> error() interrupts execution.
>

It makes sense, just not what I expected initially.

Thank you for the valued input.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to