Recognize GCC 8.x.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-12-24 20:00:51 +02:00
parent f3a1c608c9
commit 58dae6e9d9

View File

@ -15,6 +15,11 @@ count(LIST, 1, >): error("The build will fail. Path '$${OUT_PWD}' contains space
unix { unix {
*g++* { *g++* {
GCC_VERSION = $$system("g++ -dumpversion")
contains(GCC_VERSION, ^8.*$) {
message( "g++ version 8.x found" )
CONFIG += g++8
} else {
GCC_VERSION = $$system("g++ -dumpversion") GCC_VERSION = $$system("g++ -dumpversion")
contains(GCC_VERSION, ^7.*$) { contains(GCC_VERSION, ^7.*$) {
message( "g++ version 7.x found" ) message( "g++ version 7.x found" )
@ -38,6 +43,7 @@ unix {
} }
} }
} }
}
} }
TEMPLATE = subdirs TEMPLATE = subdirs