Tests: Fix CMake version check

This commit is contained in:
Lukas W
2015-01-15 23:10:28 +01:00
parent fb2df20095
commit 85d7843c98

View File

@@ -1,5 +1,5 @@
IF(CMAKE_MAJOR_VERSION LESS 2 OR
CMAKE_MINOR_VERSION LESS 8 OR
IF(CMAKE_MAJOR_VERSION LESS 2 AND
CMAKE_MINOR_VERSION LESS 8 AND
CMAKE_PATCH_VERSION LESS 8)
MESSAGE("-- Unit tests are only available in CMake >=2.8.8. You have ${CMAKE_VERSION}")
RETURN()