diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-04-27 15:30:22 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-29 14:05:39 +0200 |
commit | eddb8bc3e59f0065b12edefaf352f8aab886b921 (patch) | |
tree | f370453d2039b3c851dac581a54e38be14705599 /tests/auto/cmake/CMakeLists.txt | |
parent | 4490681459c2a41935d2a15067e6959f3e4e852c (diff) |
Simplify the cmake version check.
Change-Id: Ifdd89397f88b090a6b43d40636dbeac029faaed8
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/cmake/CMakeLists.txt')
-rw-r--r-- | tests/auto/cmake/CMakeLists.txt | 2 |
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() |