From 7ff55467b2da3d1b8c83b2371b6eedca2374c758 Mon Sep 17 00:00:00 2001
From: Philippe Canal <pcanal@fnal.gov>
Date: Mon, 27 Mar 2023 15:35:19 -0500
Subject: [PATCH] Use correct Xrootd include dir variable

---
 builtins/xrootd/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtins/xrootd/CMakeLists.txt b/builtins/xrootd/CMakeLists.txt
index 04e7be08fd1..23b2f8fda21 100644
--- a/builtins/xrootd/CMakeLists.txt
+++ b/builtins/xrootd/CMakeLists.txt
@@ -76,7 +76,7 @@ set(XROOTD_LIBRARY ${XROOTD_PREFIX}/${XROOTD_LIBDIR}/${XROOTD_LIBNAME} CACHE INT
 set(XROOTD_LIBRARIES ${XROOTD_LIBRARIES} CACHE INTERNAL "" FORCE)
 
 add_library(xrootd INTERFACE)
-foreach(dir ${XROOT_INCLUDE_DIR})
+foreach(dir ${XROOTD_INCLUDE_DIR})
   target_include_directories(xrootd INTERFACE $<BUILD_INTERFACE:${dir}>)
 endforeach()
 target_link_libraries(xrootd INTERFACE $<BUILD_INTERFACE:${XROOTD_LIBRARIES}>)
-- 
GitLab