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:
+1
-2
@@ -225,8 +225,7 @@ win32-g++ {
|
||||
}
|
||||
|
||||
unix {
|
||||
isEmpty(PREFIX)
|
||||
{
|
||||
isEmpty(PREFIX) {
|
||||
PREFIX=/usr/local
|
||||
}
|
||||
target.path = $$PREFIX/bin
|
||||
|
||||
Reference in New Issue
Block a user