Simplify the cmake version check.

Change-Id: Ifdd89397f88b090a6b43d40636dbeac029faaed8
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Stephen Kelly 2012-04-27 15:30:22 +02:00 committed by Qt by Nokia
parent 4490681459
commit eddb8bc3e5

View File

@ -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()