Replace GCC version regex with simpler solution

This commit is contained in:
Vasily
2019-04-22 09:56:50 +02:00
committed by username223
parent 9cfaf68a92
commit b60113fb8e
+2 -2
View File
@@ -1,8 +1,8 @@
# Makes sure the "g++" command used to invoke the compilation is abvove version 7.
# If it's at or above version 7 then we can use the default g++, otherwise we'll
# specifically need g++-7.
system( g++ --version | grep -e " [0-9]\?[0-9]\?[6-9].[0-9]" ) {
GCC_VERSION = $$system("g++ -dumpversion")
!greaterThan(GCC_VERSION, 6) {
message('g++' version is not above 7. Manually using 'g++-7'.)
!system(g++-7 --version) {
error(At least g++-7 required.)