Skip to content

Commit

Permalink
src/kristall.pro: append CPPFLAGS to CFLAGS and CXXFLAGS
Browse files Browse the repository at this point in the history
qmake does not use QMAKE_CPPFLAGS, this is a hack to include it.
  • Loading branch information
charles2910 authored and ikskuh committed Jan 30, 2022
1 parent 7a5499d commit be009e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kristall.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be009e4

Please sign in to comment.