Improve compiler detection.
--HG-- branch : develop
This commit is contained in:
parent
2753702385
commit
9286d99a3e
|
@ -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, ^9.*$) {
|
||||||
|
message( "g++ version 9.x found" )
|
||||||
|
CONFIG += g++9
|
||||||
|
} else {
|
||||||
GCC_VERSION = $$system("g++ -dumpversion")
|
GCC_VERSION = $$system("g++ -dumpversion")
|
||||||
contains(GCC_VERSION, ^8.*$) {
|
contains(GCC_VERSION, ^8.*$) {
|
||||||
message( "g++ version 8.x found" )
|
message( "g++ version 8.x found" )
|
||||||
|
@ -43,6 +48,7 @@ unix {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user