Skip to content

Commit 37289fa

Browse files
committed
we need at least 3.0.11
1 parent f4f6298 commit 37289fa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

SU2_PY/pySU2/meson.build

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# check for swig
22
swig = find_program('swig')
3+
# check version, manually because meson tries --version but swig uses -version.
4+
swig_version = run_command('swig', '-version').stdout().split('\n')
5+
foreach line : swig_version
6+
if line.startswith('SWIG Version ')
7+
if line.replace('SWIG Version ','').version_compare('<3.0.11')
8+
error('The SU2 Python wrapper requires Swig > 3.0.10')
9+
endif
10+
endif
11+
endforeach
312

413
# add mpi4py include
514
if mpi

0 commit comments

Comments
 (0)