diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 56520dd89..9b77a02f9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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()