From bd43ac04a5b36743d7234e076c1d9b39657dda48 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Jun 2014 02:59:03 -0300 Subject: [PATCH] CMake: quite warnings with 3.0 (without breaking < 3.0 CMakes) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 738518235d5..0ab31ddefb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,11 @@ endif() cmake_minimum_required(VERSION 2.8) +if(NOT (CMAKE_VERSION VERSION_LESS 3.0)) + # keep until CMake-3.0 is min requirement + cmake_policy(SET CMP0043 OLD) +endif() + if(NOT EXECUTABLE_OUTPUT_PATH) set(FIRST_RUN "TRUE") endif()