Recognize GCC 8.x.
--HG-- branch : develop
This commit is contained in:
parent
f3a1c608c9
commit
58dae6e9d9
|
@ -16,23 +16,29 @@ count(LIST, 1, >): error("The build will fail. Path '$${OUT_PWD}' contains space
|
||||||
unix {
|
unix {
|
||||||
*g++* {
|
*g++* {
|
||||||
GCC_VERSION = $$system("g++ -dumpversion")
|
GCC_VERSION = $$system("g++ -dumpversion")
|
||||||
contains(GCC_VERSION, ^7.*$) {
|
contains(GCC_VERSION, ^8.*$) {
|
||||||
message( "g++ version 7.x found" )
|
message( "g++ version 8.x found" )
|
||||||
CONFIG += g++7
|
CONFIG += g++8
|
||||||
} else {
|
} else {
|
||||||
contains(GCC_VERSION, ^6.*$) {
|
GCC_VERSION = $$system("g++ -dumpversion")
|
||||||
message( "g++ version 6.x found" )
|
contains(GCC_VERSION, ^7.*$) {
|
||||||
CONFIG += g++6
|
message( "g++ version 7.x found" )
|
||||||
|
CONFIG += g++7
|
||||||
} else {
|
} else {
|
||||||
contains(GCC_VERSION, ^5.*$) {
|
contains(GCC_VERSION, ^6.*$) {
|
||||||
message( "g++ version 5.x found" )
|
message( "g++ version 6.x found" )
|
||||||
CONFIG += g++5
|
CONFIG += g++6
|
||||||
} else {
|
} else {
|
||||||
contains(GCC_VERSION, ^4.*$) {
|
contains(GCC_VERSION, ^5.*$) {
|
||||||
message( "g++ version 4.x found" )
|
message( "g++ version 5.x found" )
|
||||||
CONFIG += g++4
|
CONFIG += g++5
|
||||||
} else {
|
} else {
|
||||||
message( "Unknown GCC configuration" )
|
contains(GCC_VERSION, ^4.*$) {
|
||||||
|
message( "g++ version 4.x found" )
|
||||||
|
CONFIG += g++4
|
||||||
|
} else {
|
||||||
|
message( "Unknown GCC configuration" )
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user