1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Simplifies CMake version checks.

This commit is contained in:
Nicholas Vitovitch 2015-03-11 18:02:36 -04:00 committed by Camilla Berglund
parent 5f7f6319eb
commit 35b6c72634

View File

@ -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)