From 35b6c726343769e73e34fda156dd07a66324bec2 Mon Sep 17 00:00:00 2001 From: Nicholas Vitovitch Date: Wed, 11 Mar 2015 18:02:36 -0400 Subject: [PATCH] Simplifies CMake version checks. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dd1c1c2..520d78ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ project(GLFW C) cmake_minimum_required(VERSION 2.8.9) -if (CMAKE_VERSION VERSION_EQUAL "3.0" OR CMAKE_VERSION VERSION_GREATER "3.0") +if (NOT CMAKE_VERSION VERSION_LESS "3.0") # Until all major package systems have moved to CMake 3, # we stick with the older INSTALL_NAME_DIR mechanism cmake_policy(SET CMP0042 OLD)