genfit: set the ROOT prefix when building genfit (#21589)

Co-authored-by: lintao <lintao51@gmail.com>
This commit is contained in:
vvolkl 2021-02-11 17:03:20 +01:00 committed by GitHub
parent f255c3eb76
commit 3d6e9e172d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,3 +21,15 @@ class Genfit(CMakePackage):
version('02-00-00', sha256='0bfd5dd152ad0573daa4153a731945824e0ce266f844988b6a8bebafb7f2dacc') version('02-00-00', sha256='0bfd5dd152ad0573daa4153a731945824e0ce266f844988b6a8bebafb7f2dacc')
depends_on('root') depends_on('root')
def cmake_args(self):
args = []
# normally, as a cmake package root should be
# automatically picked up after 'depends_on'
# as it is added to CMAKE_PREFIX_PATH
# but genfit cooks its own root cmake config
# so this workaround is needed for now.
root_prefix = self.spec["root"].prefix
args.append('-DROOT_DIR=%s' % root_prefix)
return args