diff -Naur ORIG/CMakeLists.txt PATCHED/CMakeLists.txt
--- ORIG/CMakeLists.txt	2026-03-27 14:17:54.129704475 +0000
+++ PATCHED/CMakeLists.txt	2026-03-27 14:17:54.129704475 +0000
@@ -4,6 +4,10 @@
 
 add_compile_options(-fPIC -Wall -D_FILE_OFFSET_BITS=64 -DDROP_CGAL)
 
+if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
+  set(CMAKE_INSTALL_LIBDIR "lib")
+endif()
+
 # Set the runtime path of the libraries by default but allow to switch it off:
 option(SET_RPATH "Set runtime path of the ${project} libraries?" ON)
 IF(SET_RPATH)
@@ -11,16 +15,16 @@
   SET(CMAKE_MACOSX_RPATH 1)
   SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
   SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
-  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
 
   # Add the automatically determined parts of the RPATH which point to directories outside
   # the build tree to the install RPATH
   SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
 
   # the RPATH to be used when installing, but only if it's not a system directory
-  LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
+  LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" isSystemDir)
   IF(${isSystemDir} EQUAL -1)
-    SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+    SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
   ENDIF(${isSystemDir} EQUAL -1)
 ENDIF(SET_RPATH)
 
@@ -28,7 +32,9 @@
 
 # Declare ROOT dependency
 find_package(ROOT REQUIRED COMPONENTS EG Eve Gui GuiHtml)
-set(CMAKE_CXX_STANDARD ${ROOT_CXX_STANDARD})
+if (NOT CMAKE_CXX_STANDARD)
+  set(CMAKE_CXX_STANDARD ${ROOT_CXX_STANDARD})
+endif()
 
 # Declare Pythia8 dependancy
 find_package(Pythia8)
@@ -36,10 +42,6 @@
   include_directories(${PYTHIA8_INCLUDE_DIRS})
 endif()
 
-if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
-  set(CMAKE_INSTALL_LIBDIR "lib")
-endif()
-
 function(DELPHES_GENERATE_DICTIONARY dictionary)
   if(${ROOT_VERSION} VERSION_LESS "6.0.0")
     ROOT_GENERATE_DICTIONARY(${dictionary} ${ARGN})
@@ -71,7 +73,7 @@
   $<TARGET_OBJECTS:TrackCovariance>
 )
 
-target_link_libraries(Delphes ${ROOT_LIBRARIES})
+target_link_libraries(Delphes ${ROOT_LIBRARIES} ROOT::Geom ROOT::Eve)
 
 if(PYTHIA8_FOUND)
   target_link_libraries(Delphes ${PYTHIA8_LIBRARIES} ${CMAKE_DL_LIBS})
@@ -83,4 +85,4 @@
 
 target_link_libraries(DelphesDisplay Delphes)
 
-install(TARGETS Delphes DelphesDisplay DESTINATION lib)
+install(TARGETS Delphes DelphesDisplay DESTINATION ${CMAKE_INSTALL_LIBDIR})
