From b4f081727decc05042fc385dd1e43a8cd7d1adaf Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 30 May 2017 16:58:01 +0300 Subject: [PATCH] Fixed determining GCC version. --HG-- branch : develop --- Valentina.pro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Valentina.pro b/Valentina.pro index c3e50aa69..86f7dc1fa 100644 --- a/Valentina.pro +++ b/Valentina.pro @@ -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 {