Allow overriding PREFIX on qmake

I tried to build SavvyCAN for Alpine Linux and ran `qtmake-qt5 PREFIX=/usr`. I got errors because Alpine's packaging tool does not allow placing any files in `/usr/local`; it turns out the prefix I set was ignored because `isEmpty(PREFIX)` was not directly followed by a block, so the block statement gets treated as a separate statement and the `isEmpty` just does nothing.
This commit is contained in:
Lucidiot
2021-09-24 00:32:28 +02:00
committed by GitHub
parent 37b9c821e5
commit 7af544e03f
+1 -2
View File
@@ -225,8 +225,7 @@ win32-g++ {
}
unix {
isEmpty(PREFIX)
{
isEmpty(PREFIX) {
PREFIX=/usr/local
}
target.path = $$PREFIX/bin