qmake: how to supply multiple variables via command-line?
Hello.
qmake allows to supply a variables via a command-line interface like this:
Code:
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
Code:
qmake "CONFIG += release" "MY_VAR = hello" "MY_ANOTHER_VAR = hi"
But it did not work (raises error). Any hints?
Re: qmake: how to supply multiple variables via command-line?
Works for me - QMake version 2.01a. There should be no issue with that:
Code:
$ cat pro.pro:
message($$MY_VAR | $$MY_ANOTHER_VAR)
$ qmake pro.pro "CONFIG += release" "MY_VAR = hello" "MY_ANOTHER_VAR = hi"
Project MESSAGE: hello | hi