Skip to content

Commit 53be4ee

Browse files
committed
Also look in sage_local for nauty
1 parent 9a627fd commit 53be4ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sage/meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,12 @@ nauty_progs = [
6464
'genktreeg',
6565
'genposetg',
6666
]
67+
extra_bin_paths = []
68+
if get_option('SAGE_LOCAL') != ''
69+
extra_bin_paths += [join_paths(get_option('SAGE_LOCAL'), 'bin')]
70+
endif
6771
foreach prog : nauty_progs
68-
nauty_check = find_program(prog, required: false)
72+
nauty_check = find_program(prog, dirs: extra_bin_paths, required: false)
6973
if nauty_check.found()
7074
nauty_bins_prefix = nauty_check.full_path().replace(prog, '')
7175
endif

0 commit comments

Comments
 (0)