Commit 48d43234 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Fix for CORAL, do not try to define ROOT_INCLUDE_PATH there

(fails on CORAL server branches against older LCG71 and ROOT5...)


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19676 4525493e-7705-40b1-a816-d608a930855b
parent c215a209
......@@ -126,13 +126,15 @@ function(_env_package pack output)
endif()
endif()
find_package(ROOT)
if(ROOT_FOUND)
if(${pack}_INCLUDE_DIR AND NOT pack STREQUAL ROOT)
list(APPEND _env PREPEND ROOT_INCLUDE_PATH ${${pack}_INCLUDE_DIR})
endif()
if(${_pack_upper}_INCLUDE_DIR AND NOT pack STREQUAL ROOT)
list(APPEND _env PREPEND ROOT_INCLUDE_PATH ${${_pack_upper}_INCLUDE_DIR})
if(${CMAKE_PROJECT_NAME} STREQUAL COOL)
find_package(ROOT)
if(ROOT_FOUND)
if(${pack}_INCLUDE_DIR AND NOT pack STREQUAL ROOT)
list(APPEND _env PREPEND ROOT_INCLUDE_PATH ${${pack}_INCLUDE_DIR})
endif()
if(${_pack_upper}_INCLUDE_DIR AND NOT pack STREQUAL ROOT)
list(APPEND _env PREPEND ROOT_INCLUDE_PATH ${${_pack_upper}_INCLUDE_DIR})
endif()
endif()
endif()
......
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