Build the first CMake test if *at least* version 2.8.7 is available.

Change-Id: I061130e5b937ad818cc9016ae62d5890092d60f2
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Stephen Kelly 2012-04-18 14:33:39 +02:00 committed by Qt by Nokia
parent e8e3049d31
commit d5bd336dba

View File

@ -76,7 +76,7 @@ macro(expect_fail _dir)
)
endmacro()
if(${CMAKE_VERSION} VERSION_GREATER 2.8.7)
if(${CMAKE_VERSION} VERSION_EQUAL 2.8.7 OR ${CMAKE_VERSION} VERSION_GREATER 2.8.7)
# Requires CMAKE_AUTOMOC function in CMake 2.8.7
expect_pass(pass1)
else()