summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-04-27 15:30:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-29 14:05:39 +0200
commiteddb8bc3e59f0065b12edefaf352f8aab886b921 (patch)
treef370453d2039b3c851dac581a54e38be14705599
parent4490681459c2a41935d2a15067e6959f3e4e852c (diff)
Simplify the cmake version check.
Change-Id: Ifdd89397f88b090a6b43d40636dbeac029faaed8 Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--tests/auto/cmake/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index 3b0d7d09e6..49aaaa282b 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -78,7 +78,7 @@ macro(expect_fail _dir)
)
endmacro()
-if(${CMAKE_VERSION} VERSION_EQUAL 2.8.7 OR ${CMAKE_VERSION} VERSION_GREATER 2.8.7)
+if(NOT ${CMAKE_VERSION} VERSION_LESS 2.8.7)
# Requires CMAKE_AUTOMOC function in CMake 2.8.7
expect_pass(pass1)
else()