Changeset 19327


Ignore:
Timestamp:
Oct 29, 2018, 10:58:22 PM (5 months ago)
Author:
tbretz
Message:
This was still not working, it produced root 5 dictionaries with root 6
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19324 r19327  
    107107# --------- ROOT -------------
    108108
     109IF(NOT DEFINED ENV{ROOTSYS})
     110   MESSAGE(FATAL_ERROR "ROOTSYS not defined. Please call 'source [root]/bin/thisroot.sh'")
     111ENDIF()
     112
    109113# You need to tell CMake where to find the ROOT installation. This can be done in a number of ways:
    110114#   - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake
    111115#   - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT
    112 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake")
     116IF(EXISTS $ENV{ROOTSYS}/ROOTConfig.cmake)
     117   IF(NOT DEFINED ENV{CMAKE_PREFIX_PATH})
     118      LIST(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
     119   ENDIF()
     120ELSE()
     121   SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake")
     122ENDIF()
    113123
    114124#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
Note: See TracChangeset for help on using the changeset viewer.