diff options
Diffstat (limited to 'qtserialbus.pro')
-rw-r--r-- | qtserialbus.pro | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qtserialbus.pro b/qtserialbus.pro index 97b60e6..62774c0 100644 --- a/qtserialbus.pro +++ b/qtserialbus.pro @@ -6,6 +6,16 @@ requires(!win32-msvc2010) # not C++11 capabable -> will be removed from CI soon requires(!win32-msvc2008) # not C++11 capabable -> will be removed from CI soon requires(c++11) +defineTest(isGCCVersionSupported) { + # The below will work for gcc 4.7 and up and also match gcc 5 + greaterThan(QT_GCC_MINOR_VERSION, 6):return(true) + greaterThan(QT_GCC_MAJOR_VERSION, 4):return(true) + warning("Using gcc version "$$QT_GCC_MAJOR_VERSION"."$$QT_GCC_MINOR_VERSION", but at least gcc version 4.7 is required") + return(false) +} + +gcc:!clang:!isGCCVersionSupported(): requires(false) + lessThan(QT_MAJOR_VERSION, 5) { message("Cannot build current QtSerialBus sources with Qt version $${QT_VERSION}.") } |