From ac6d13ee14c77cf0e86e1785e2d6c6d7a45423a1 Mon Sep 17 00:00:00 2001
From: Guilherme Amadio <amadio@cern.ch>
Date: Tue, 18 Dec 2018 11:14:19 +0100
Subject: [PATCH] Update minimum required version of CMake to 3.9

The main reason for this update is to use COMMAND_EXPAND_LISTS in
add_custom_target() and add_custom_command(), which lets us pick
include directories needed for rootcling from the library target
that needs a dictionary to be generated. This has been introduced
in CMake 3.8. The other reasons are that starting with CMake 3.8
the try_compile() command respects CMAKE_CXX_STANDARD if it is set
and support for CUDA as a first class language. CMake 3.9 adds IPO
support and the DISABLED property for tests, which we want to use.
It also has better modules for GoogleTest and Doxygen support, as
well as full support for CUDA on Windows and the ability to install
or export object libraries. Please see the release notes for more
information: https://cmake.org/cmake/help/latest/release/index.html
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 854baa55867..50b97b8c11c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
 
 set(policy_new CMP0068 CMP0072 CMP0077)
 foreach(policy ${policy_new})
-- 
GitLab