Skip to content

Commit

Permalink
Automatically symlink missing ROOT cmake modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 29, 2022
1 parent bf37537 commit 7f03e4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ilcsoft/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
##################################################

# custom imports
import os
from .baseilc import BaseILC
from .util import *

Expand Down Expand Up @@ -131,6 +132,14 @@ def compile(self):



if self.version > "6.19.0":
# Need to symlink two cmake scripts that are not installed properly
# otherwise and would break packages that depend on ROOT
for mod in ['RootMacros.cmake', 'RootTestDriver.cmake']:
link_path = os.path.join(self.installPath, 'cmake', mod)
src = os.path.join(self.installPath, 'cmake', 'modules', mod)
os.symlink(src, link_path)

def postCheckDeps(self):
BaseILC.postCheckDeps(self)
# Required for LCIO installation.
Expand Down

0 comments on commit 7f03e4b

Please sign in to comment.