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:
parent
e8e3049d31
commit
d5bd336dba
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user