Changeset 19362
- Timestamp:
- 11/08/18 11:35:46 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/CMakeLists.txt
r19325 r19362 238 238 # --------- ROOT ------------- 239 239 240 FIND_PROGRAM(ROOTCONFIG_EXECUTABLE NAMES root-config) 241 FIND_PACKAGE_HANDLE_STANDARD_ARGS(root-config DEFAULT_MSG ROOTCONFIG_EXECUTABLE) 242 IF(NOT ROOTCONFIG_EXECUTABLE) 243 MESSAGE(FATAL_ERROR "Please make sure `root-config` is accessible in your path. In case of an installation from source, you might need to source\n . [path-to-root]/bin/thisroot.sh") 244 ENDIF() 245 240 246 # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways: 241 247 # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake 242 248 # - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT 243 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake") 249 IF(EXISTS $ENV{ROOTSYS}/ROOTConfig.cmake) 250 IF(NOT DEFINED ENV{CMAKE_PREFIX_PATH}) 251 LIST(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS}) 252 ENDIF() 253 ELSE() 254 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake") 255 ENDIF() 244 256 245 257 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS) … … 250 262 ENDIF() 251 263 264 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS) 252 265 IF(NOT DEFINED ROOT_CONFIG_EXECUTABLE) 253 FIND_PACKAGE_MESSAGE(RootFound "Found ROOT: ${ROOT_INCLUDE_DIRS} " "[${ROOT_INCLUDE_DIRS}][${ROOT_LIBRARY_DIR}]")266 FIND_PACKAGE_MESSAGE(RootFound "Found ROOT: ${ROOT_INCLUDE_DIRS} [${ROOT_VERSION}]" "[${ROOT_INCLUDE_DIRS}][${ROOT_LIBRARY_DIR}][${ROOT_VERSION}]") 254 267 ENDIF() 255 268 … … 267 280 SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${ROOT_fortran_FLAGS}") 268 281 ENDIF() 269 270 282 271 283 # -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree
Note:
See TracChangeset
for help on using the changeset viewer.