Skip to content

Commit 0fccdc1

Browse files
committed
Address meson deprecation warnings.
1 parent 53563d9 commit 0fccdc1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if build_machine.system() != 'windows'
4646
endif
4747

4848
# meson script path
49-
script_path = meson.source_root() / 'meson_scripts'
49+
script_path = meson.project_source_root() / 'meson_scripts'
5050

5151
# mpi flag
5252
mpi = false
@@ -325,10 +325,10 @@ message('''---------------------------------------------------------------------
325325
export PYTHONPATH=$PYTHONPATH:$SU2_RUN
326326
327327
Use './ninja -C @13@ install' to compile and install SU2
328-
'''.format(get_option('prefix')+'/bin', meson.source_root(), get_option('enable-tecio'), get_option('enable-cgns'),
328+
'''.format(get_option('prefix')+'/bin', meson.project_source_root(), get_option('enable-tecio'), get_option('enable-cgns'),
329329
get_option('enable-autodiff'), get_option('enable-directdiff'), get_option('enable-pywrapper'), get_option('enable-mkl'),
330330
get_option('enable-openblas'), get_option('enable-pastix'), get_option('enable-mixedprec'), get_option('enable-librom'), get_option('enable-coolprop'),
331-
get_option('enable-mlpcpp'), meson.build_root().startswith(meson.source_root()) ? meson.build_root().split('/')[-1] : meson.build_root()))
331+
get_option('enable-mlpcpp'), meson.project_build_root().startswith(meson.project_source_root()) ? meson.project_build_root().split('/')[-1] : meson.project_build_root()))
332332

333333
if get_option('enable-mpp')
334334
message(''' To run SU2 with Mutation++ library, add these lines to your .bashrc file:

0 commit comments

Comments
 (0)