From 85d7843c9888a14b9cbd8990e9212a05260668d5 Mon Sep 17 00:00:00 2001 From: Lukas W Date: Thu, 15 Jan 2015 23:10:28 +0100 Subject: [PATCH] Tests: Fix CMake version check --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()