With the following dummy qmake syntax I am trying to set an environment variable and then check it later:
MY_VAR = true
message("A")
defined(MY_VAR){
message("B")
}
The unintuitive part for me is that upon running this qmake script, only "A" is outputted to the console and not "B";
So what is the correct way of setting an environment variable in qmake?