Skip to content

Commit b2cb8bc

Browse files
committed
Improve nauty discovery in meson
1 parent a7334f0 commit b2cb8bc

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/sage/meson.build

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,23 @@ ecm_bin = find_program(
5454
disabler: true,
5555
)
5656
conf_data.set('SAGE_ECMBIN', ecm_bin.full_path())
57-
57+
nauty_bins_prefix = ''
58+
nauty_progs = [
59+
'directg',
60+
'gentourng',
61+
'geng',
62+
'genbg',
63+
'gentreeg',
64+
'genktreeg',
65+
'genposetg',
66+
]
67+
foreach prog : nauty_progs
68+
nauty_check = find_program(prog, required: false)
69+
if nauty_check.found()
70+
nauty_bins_prefix = nauty_check.full_path().replace(prog, '')
71+
endif
72+
endforeach
73+
conf_data.set('SAGE_NAUTY_BINS_PREFIX', nauty_bins_prefix)
5874
# Packages that need no processing and can be installed directly
5975
no_processing = [
6076
'cli',

0 commit comments

Comments
 (0)