From 7af544e03ff98dd00b1f1ebf3c8044c23714a62a Mon Sep 17 00:00:00 2001 From: Lucidiot Date: Fri, 24 Sep 2021 00:32:28 +0200 Subject: [PATCH] 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. --- SavvyCAN.pro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SavvyCAN.pro b/SavvyCAN.pro index 789ec72..ee9ac6f 100644 --- a/SavvyCAN.pro +++ b/SavvyCAN.pro @@ -225,8 +225,7 @@ win32-g++ { } unix { - isEmpty(PREFIX) - { + isEmpty(PREFIX) { PREFIX=/usr/local } target.path = $$PREFIX/bin