Skip to content
Snippets Groups Projects

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

Merged Oleksandr Zenaiev requested to merge fix_cmake_ROOT into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -21,7 +21,9 @@ if(EXISTS ${root-config})
list(APPEND ROOT_HINTS ${ROOT_PREFIX})
endif()
find_package(ROOT QUIET HINTS ${ROOT_HINTS})
if(NOT CMAKE_VERSION VERSION_LESS 3.0.0)
find_package(ROOT QUIET HINTS ${ROOT_HINTS})
endif()
if(ROOT_FOUND)
#Use variables provided by ROOTConfig.cmake
#Remove some extra flags from ROOT_DEFINITIONS
Loading