Skip to content

Commit 6acc62f

Browse files
authored
Merge pull request #1618 from su2code/check_swig_version
Check that SWIG version is at least 3.0.11
2 parents f4f6298 + e8245b4 commit 6acc62f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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 version >= 3.0.11')
9+
endif
10+
endif
11+
endforeach
312

413
# add mpi4py include
514
if mpi

0 commit comments

Comments
 (0)