Recognize GCC 8.x.
--HG-- branch : develop
This commit is contained in:
parent
f3a1c608c9
commit
58dae6e9d9
|
@ -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" )
|
||||||
|
@ -39,6 +44,7 @@ unix {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
SUBDIRS = src
|
SUBDIRS = src
|
||||||
|
|
Loading…
Reference in New Issue
Block a user