Fixed determining GCC version.
--HG-- branch : develop
This commit is contained in:
parent
2921dbf2a3
commit
b4f081727d
|
@ -16,19 +16,19 @@ count(LIST, 1, >): error("The build will fail. Path '$${OUT_PWD}' contains space
|
|||
unix {
|
||||
*-g++ {
|
||||
GCC_VERSION = $$system("g++ -dumpversion")
|
||||
contains(GCC_VERSION, 7.[0-9]) {
|
||||
contains(GCC_VERSION, ^7.*$) {
|
||||
message( "g++ version 7.x found" )
|
||||
CONFIG += g++7
|
||||
} else {
|
||||
contains(GCC_VERSION, 6.[0-9]) {
|
||||
contains(GCC_VERSION, ^6.*$) {
|
||||
message( "g++ version 6.x found" )
|
||||
CONFIG += g++6
|
||||
} else {
|
||||
contains(GCC_VERSION, 5.[0-9]) {
|
||||
contains(GCC_VERSION, ^5.*$) {
|
||||
message( "g++ version 5.x found" )
|
||||
CONFIG += g++5
|
||||
} else {
|
||||
contains(GCC_VERSION, 4.[0-9]) {
|
||||
contains(GCC_VERSION, ^4.*$) {
|
||||
message( "g++ version 4.x found" )
|
||||
CONFIG += g++4
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user