CMake proper version comparison

This commit is contained in:
Lukas W
2015-06-16 16:55:38 +02:00
parent ca746e50f9
commit 4d4f0ed438
2 changed files with 2 additions and 6 deletions

View File

@@ -1,6 +1,4 @@
IF(NOT (CMAKE_MAJOR_VERSION GREATER 2 OR
CMAKE_MINOR_VERSION GREATER 8 OR
CMAKE_PATCH_VERSION GREATER 7))
IF(CMAKE_VERSION VERSION_LESS 2.8.8)
MESSAGE("-- Unit tests are only available in CMake >=2.8.8. You have ${CMAKE_VERSION}")
RETURN()
ENDIF()