From 7d636d8c3fbea9128ad84aeebddcbc757c94e1dc Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 2 Aug 2019 15:14:48 +0300 Subject: [PATCH] CMake: Accept _ROOT from environment --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5f0d33b3..6af87a745 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) message(AUTHOR_WARNING "If the build fails, please try the autotools/qmake method.") +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules) include(FunctionReadVersion)