qmake
allows to supply a variables via a command-line interface like this:
qmake "CONFIG += release" "MY_VAR = hello"
So i can use $$MY_VAR
inside a .pro
file. But is it possible to suply more than one variable such way? I have tried
qmake "CONFIG += release" "MY_VAR = hello" "MY_ANOTHER_VAR = hi"
But it did not work (raises error). Any hints?
qmake can access environment variables via
$$()
syntax (internal variables are accessed with$${}
syntax). This can be used to pass any number of variables to qmake.The question is misleading. You CAN supply any number of variables.
.pro file:
qmake run:
compiler output: