Improve compiler detection.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-05-05 17:46:13 +03:00
parent 2753702385
commit 9286d99a3e

View File

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