Skip to content

Commit 78d02ca

Browse files
committed
checkout repo for overview and manifest steps and explicit ROOT_DIR in cmake root dep test
1 parent fba0e5b commit 78d02ca

2 files changed

Lines changed: 26 additions & 7 deletions

File tree

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
name: Workflow Overview
2626
runs-on: ubuntu-latest
2727
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
2831
- name: Write overview
2932
shell: bash
3033
run: |
@@ -174,6 +177,9 @@ jobs:
174177
env:
175178
TAG4: ${{ format('{0}-{1}-{2}-{3}', matrix.gemc_tag, matrix.geant4_tag, matrix.image, matrix.image_tag) }}
176179
steps:
180+
- name: Checkout repository
181+
uses: actions/checkout@v4
182+
177183
- name: Log in to GHCR
178184
uses: docker/login-action@v3
179185
with:

meson/meson.build

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,28 @@ if (not root_dep.found()) and (not root_opt.disabled())
4141
# Probe root-config once
4242
rootcfg = find_program('root-config', required : false)
4343
if rootcfg.found()
44-
root_prefix = run_command(rootcfg, '--prefix', check : true).stdout().strip()
44+
# root_dep = dependency('ROOT',
45+
# version : '>=6.32.16',
46+
# method : 'cmake',
47+
# modules : ['ROOT::Core', 'ROOT::RIO', 'ROOT::Tree', 'ROOT::Hist'],
48+
# required : false,
49+
# include_type : 'system') # treat as system include paths - no warnings
50+
51+
root_prefix = run_command(rootcfg, '--prefix', check: true).stdout().strip()
52+
root_libdir = run_command(rootcfg, '--libdir', check: true).stdout().strip()
53+
54+
root_cmake = join_paths(root_libdir, 'cmake', 'ROOT')
55+
if not fs.is_dir(root_cmake)
56+
root_cmake = join_paths(root_prefix, 'lib', 'cmake', 'ROOT')
57+
endif
4558

46-
root_mods = []
4759
root_dep = dependency('ROOT',
48-
version : '>=6.32.16',
49-
method : 'cmake',
50-
modules : ['ROOT::Core', 'ROOT::RIO', 'ROOT::Tree', 'ROOT::Hist'],
51-
required : false,
52-
include_type : 'system') # treat as system include paths - no warnings
60+
version: '>=6.32.16',
61+
method: 'cmake',
62+
modules: ['ROOT::Core', 'ROOT::RIO', 'ROOT::Tree', 'ROOT::Hist'],
63+
cmake_args: ['-DROOT_DIR=' + root_cmake],
64+
required: false,
65+
include_type: 'system')
5366

5467
if root_dep.found()
5568
message('root-config found; ROOT dependency resolved: ' + root_dep.version())

0 commit comments

Comments
 (0)