Commit e735b9ac authored by Lennart Huth's avatar Lennart Huth Committed by Lennart Huth
Browse files

added hint to find root macros

parent 085f090d
......@@ -2,10 +2,12 @@
INCLUDE_DIRECTORIES(SYSTEM ${CORRYVRECKAN_DEPS_INCLUDE_DIRS})
# Find the RootNewMacros.cmake file and include it
GET_FILENAME_COMPONENT(ROOT_CMAKE_DIR ${ROOT_USE_FILE} DIRECTORY)
#GET_FILENAME_COMPONENT(ROOT_CMAKE_DIR ${ROOT_USE_FILE} DIRECTORY)
FIND_FILE(ROOT_MACROS_FILE
NAMES RootNewMacros.cmake
HINTS ${ROOT_CMAKE_DIR}/modules/ $ENV{ROOTSYS}/cmake/modules)
HINTS ${ROOT_CMAKE_DIR}/modules/
$ENV{ROOTSYS}/../cmake/modules
$ENV{ROOTSYS}/cmake/modules)
IF(NOT ROOT_MACROS_FILE)
MESSAGE(WARNING "Cannot find ROOT macros, including generic file as fallback.")
......
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