Changeset 19834


Ignore:
Timestamp:
10/30/19 16:18:35 (5 years ago)
Author:
tbretz
Message:
Minor improvement but still not perfect. This reflects at least with which root version cmake was run.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19830 r19834  
    184184ENDIF()
    185185
     186IF(ROOTSYS AND NOT ROOTSYS STREQUAL $ENV{ROOTSYS})
     187   MESSAGE(WARNING
     188      " \n"
     189      " ROOT Version changed!\n"
     190      " Present  ROOTSYS: $ENV{ROOTSYS}\n"
     191      " Previous ROOTSYS: ${ROOTSYS}")
     192   FILE(REMOVE thisroot.sh)
     193ENDIF()
     194
     195SET(ROOTSYS $ENV{ROOTSYS} CACHE INTERNAL "Internal variable to check for consistency in ROOTSYS")
     196
    186197# For convenience and easy tracking
    187 ADD_CUSTOM_COMMAND(OUTPUT thisroot.sh COMMAND ln -sf $ENV{ROOTSYS}/bin/thisroot.sh VERBATIM)
     198ADD_CUSTOM_COMMAND(OUTPUT thisroot.sh COMMAND ln -sf ${ROOTSYS}/bin/thisroot.sh VERBATIM)
    188199ADD_CUSTOM_TARGET(thisroot ALL DEPENDS thisroot.sh)
    189200
Note: See TracChangeset for help on using the changeset viewer.