Changeset 19836 for trunk/FACT++


Ignore:
Timestamp:
10/30/19 16:33:53 (5 years ago)
Author:
tbretz
Message:
Some convenience stuff for debugging (a link to thisroot.sh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r19818 r19836  
    277277      SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${ROOT_fortran_FLAGS}")
    278278   ENDIF()
     279
     280   IF(ROOTSYS AND NOT ROOTSYS STREQUAL $ENV{ROOTSYS})
     281      MESSAGE(WARNING
     282         " \n"
     283         " ROOT Version changed!\n"
     284         " Present  ROOTSYS: $ENV{ROOTSYS}\n"
     285         " Previous ROOTSYS: ${ROOTSYS}")
     286      FILE(REMOVE thisroot.sh)
     287   ENDIF()
     288
     289   SET(ROOTSYS $ENV{ROOTSYS} CACHE INTERNAL "Internal variable to check for consistency in ROOTSYS")
     290
     291   # For convenience and easy tracking
     292   ADD_CUSTOM_COMMAND(OUTPUT thisroot.sh COMMAND ln -sf ${ROOTSYS}/bin/thisroot.sh VERBATIM)
     293   ADD_CUSTOM_TARGET(thisroot ALL DEPENDS thisroot.sh)
    279294
    280295ENDIF(NOT NO_ROOT AND NOT VIEWER_ONLY)
Note: See TracChangeset for help on using the changeset viewer.