From 2b57d176dfd2f8a0243d52ca4a0ce0ce45aeddb1 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 5 Jan 2015 02:40:02 +0100 Subject: [PATCH] Added workaround for CMP0042. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13a4456a..077e5736 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,12 @@ project(GLFW C) cmake_minimum_required(VERSION 2.8.9) +if (CMAKE_VERSION VERSION_EQUAL "3.0" OR CMAKE_VERSION VERSION_GREATER "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) +endif() + set(GLFW_VERSION_MAJOR "3") set(GLFW_VERSION_MINOR "1") set(GLFW_VERSION_PATCH "0")