Changeset 19347


Ignore:
Timestamp:
Nov 7, 2018, 10:17:30 AM (2 months ago)
Author:
tbretz
Message:
Improved pre-check for root-config.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19346 r19347  
    107107# --------- ROOT -------------
    108108
    109 IF(NOT EXISTS root-config})
    110    MESSAGE(WARNING "`root-config` not found in path. First make sure it is accessible.")
     109FIND_PROGRAM(ROOTCONFIG_EXECUTALE NAMES root-configx)
     110FIND_PACKAGE_HANDLE_STANDARD_ARGS(root-config DEFAULT_MSG ROOTCONFIG_EXECUTABLE)
     111IF(NOT ROOTCONFIG_EXECUTABLE)
     112   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")
    111113ENDIF()
    112114
Note: See TracChangeset for help on using the changeset viewer.