Changeset 19327
- Timestamp:
- 10/29/18 22:58:22 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19324 r19327 107 107 # --------- ROOT ------------- 108 108 109 IF(NOT DEFINED ENV{ROOTSYS}) 110 MESSAGE(FATAL_ERROR "ROOTSYS not defined. Please call 'source [root]/bin/thisroot.sh'") 111 ENDIF() 112 109 113 # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways: 110 114 # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake 111 115 # - 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") 116 IF(EXISTS $ENV{ROOTSYS}/ROOTConfig.cmake) 117 IF(NOT DEFINED ENV{CMAKE_PREFIX_PATH}) 118 LIST(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS}) 119 ENDIF() 120 ELSE() 121 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake") 122 ENDIF() 113 123 114 124 #---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.