From be009e47529ea4118079928d7e7f3d3b4123c472 Mon Sep 17 00:00:00 2001 From: Carlos Henrique Lima Melara Date: Sun, 30 Jan 2022 12:07:30 -0300 Subject: [PATCH] src/kristall.pro: append CPPFLAGS to CFLAGS and CXXFLAGS qmake does not use QMAKE_CPPFLAGS, this is a hack to include it. --- src/kristall.pro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kristall.pro b/src/kristall.pro index 78aa7ab..5f5bb46 100644 --- a/src/kristall.pro +++ b/src/kristall.pro @@ -24,12 +24,15 @@ DEFINES += KRISTALL_VERSION="\"$(shell cd $$PWD; git describe --tags)\"" # Initialize build flags from environment variables. QMAKE_CFLAGS *= $$(CFLAGS) QMAKE_CXXFLAGS *= $$(CXXFLAGS) -QMAKE_CPPFLAGS *= $$(CPPFLAGS) QMAKE_LFLAGS *= $$(LDFLAGS) QMAKE_CFLAGS += -Wno-unused-parameter -Werror=return-type QMAKE_CXXFLAGS += -Wno-unused-parameter -Werror=return-type +# qmake does not use QMAKE_CPPFLAGS, this is a hack to include it +QMAKE_CXXFLAGS += $$(CPPFLAGS) +QMAKE_CFLAGS += $$(CPPFLAGS) + # Enable C++17 QMAKE_CXXFLAGS += -std=c++17 CONFIG += c++17