Skip to content

fix cmake compilation if cmake version <3 and ROOT version >=6.22.02

Oleksandr Zenaiev requested to merge fix_cmake_ROOT into master

It seems that ROOT-6.22.02 is not compatible with cmake version <3 as there is:

if(CMAKE_VERSION VERSION_LESS 3.0.0)
  message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
endif()

(see /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.22.02/x86_64-centos7-gcc48-opt/cmake/ROOTConfig-targets.cmake)

Therefore now we rely solely on root-config, if cmake version <3.

Merge request reports