Cmake FindRoot.cmake problem

I stumbled over a little problem with $ROOTSYS/etc/cmake/FindRoot.cmake when running cmake version 2.8.8:

I get the error message:

CMakeMacroParseArguments not found.

The reason is, that starting with 2.8.3 this is obsolate. I added the following fix which seems to work:

if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.8.2)
  include(CMakeParseArguments)
else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.8.2)
  include(CMakeMacroParseArguments)
endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.8.2)

Could you please verfiy and change this?!

You are right. We should be using CMakeParseArguments, which is the standard module. The problem is that the meaning of the arguments is slightly different and it needs some adaptation. I’ll make the necessary changes. Which version are you suing of ROOT?

I just committed some changes to FindROOT.cmake that includes your requested fix. Can you please try with raw.github.com/root-mirror/root … ROOT.cmake