Commit 61dbaf69 authored by Lennart Huth's avatar Lennart Huth
Browse files

removed GBL from cmake and fixed cmake error if ROOT_USE_FILE not found

parent bc3e5aa4
......@@ -9,19 +9,11 @@ FIND_FILE(ROOT_MACROS_FILE
IF(NOT ROOT_MACROS_FILE)
MESSAGE(WARNING "Cannot find ROOT macros, including generic file as fallback.")
INCLUDE(${ROOT_USE_FILE})
INCLUDE("${ROOT_USE_FILE}")
ELSE()
INCLUDE(${ROOT_MACROS_FILE})
ENDIF()
# we need to import gbl
FIND_PACKAGE(GBL QUIET)
IF(NOT GBL_FOUND)
MESSAGE(FATAL_ERROR "Could not find GBL, make sure to set the path to your installation using\n"
"$ cmake -D GBL_DIR=/path/to/gbl ..")
ENDIF()
INCLUDE_DIRECTORIES(SYSTEM ${GBL_INCLUDE_DIR})
# Generate the ROOT dictionary
ROOT_GENERATE_DICTIONARY(CorryvreckanObjectsDictionary
${CMAKE_CURRENT_SOURCE_DIR}/Object.hpp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment