From ef80aba58fbf3e1b2f05a273ef5c728f46917745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 3 Aug 2017 21:07:25 +0200 Subject: [PATCH] gui: fix compiler selection if CXX is empty --- gui/gui.pro | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gui/gui.pro b/gui/gui.pro index d7c9d154b..7d51683f8 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -22,8 +22,13 @@ MOC_DIR = temp OBJECTS_DIR = temp UI_DIR = temp -QMAKE_CC = $$(CC) -QMAKE_CXX = $$(CXX) +isEmpty(QMAKE_CXX) { + isEmpty(CXX)) { + QMAKE_CXX = gcc + } else { + QMAKE_CXX = $$(CXX) + } +} win32 { CONFIG += windows