From 88bdc9d8c0c8413566a34d999d7e1c9b2b621e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Bl=C3=BChdorn?= Date: Tue, 13 Sep 2022 15:55:18 +0200 Subject: [PATCH] Adapt ninja command for builds outside the SU2 directory. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 808d5df73c3..414dc446dfc 100644 --- a/meson.build +++ b/meson.build @@ -298,7 +298,8 @@ message('''--------------------------------------------------------------------- Use './ninja -C @12@ install' to compile and install SU2 '''.format(get_option('prefix')+'/bin', meson.source_root(), get_option('enable-tecio'), get_option('enable-cgns'), get_option('enable-autodiff'), get_option('enable-directdiff'), get_option('enable-pywrapper'), get_option('enable-mkl'), - get_option('enable-openblas'), get_option('enable-pastix'), get_option('enable-mixedprec'), get_option('enable-librom'), meson.build_root().split('/')[-1])) + get_option('enable-openblas'), get_option('enable-pastix'), get_option('enable-mixedprec'), get_option('enable-librom'), + meson.build_root().startswith(meson.source_root()) ? meson.build_root().split('/')[-1] : meson.build_root()) if get_option('enable-mpp') message(''' To run SU2 with Mutation++ library, add these lines to your .bashrc file: