build with Qt6 support on Linux

This commit is contained in:
nhmall
2022-01-13 14:09:41 -05:00
parent 6fda779979
commit 53f3016b43
2 changed files with 48 additions and 7 deletions

View File

@@ -26,10 +26,18 @@ CCFLAGS = -g
#detection
CCISCLANG := $(shell echo `$(CC) --version` | grep clang)
ifeq "$(CCISCLANG)" ""
ifdef WANT_WIN_QT6
CXX=g++ -std=c++17
else
CXX=g++ -std=gnu++11
endif
else
ifdef WANT_WIN_QT6
CXX=clang++ -std=c++17
else
CXX=clang++ -std=gnu++11
endif
endif # clang
# If you want to override the compiler detection just carried out
# uncomment one of the following pairs. Note, however, that