summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-03-27 00:15:08 +0100
committerStephen Kelly <steveire@gmail.com>2013-03-27 00:15:08 +0100
commit535e53c7ccbed7f7218caf3955dac93d40af0c38 (patch)
tree5c6a493999ed85fd5f42a825f5641fc2d7ddd576
parentb9e4a5abb45055b310032977a9542acff3c14c9b (diff)
downloadcmake-535e53c7ccbed7f7218caf3955dac93d40af0c38.tar.gz
Fix the Qt 5 version required to run the IncompatibleQt test.
The commit to add the INTERFACE_QT_MAJOR_VERSION in qtbase.git is 14054d45 (Set the INTERFACE_QT_MAJOR_VERSION to 5., 2013-03-16) which will be part of Qt 5.1.0. If there is a Qt 5.0.3 release, there is no guarantee it will contain that commit. Make sure such a Qt version does not fail with this test if not.
-rw-r--r--Tests/RunCMake/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 7f9b9fdafb..a3c9605e74 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -77,7 +77,7 @@ add_RunCMake_test(CMP0004)
find_package(Qt4 QUIET)
find_package(Qt5Core QUIET)
-if (QT4_FOUND AND Qt5Core_FOUND AND Qt5Core_VERSION VERSION_GREATER 5.0.2)
+if (QT4_FOUND AND Qt5Core_FOUND AND NOT Qt5Core_VERSION VERSION_LESS 5.1.0)
add_RunCMake_test(IncompatibleQt)
endif()