From 940eb083ebeb751b8b075aa83209c99d7c2e8e4d Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Tue, 6 Feb 2024 22:01:47 -0500 Subject: [PATCH] refactor(meson.build): check for autotest/ before calling subdir() * makes the autotest subdirectory of the proj root optional * motivated by the distribution which doesn't contain autotests --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 211bdc3921c..b0d8aa6676b 100644 --- a/meson.build +++ b/meson.build @@ -225,7 +225,10 @@ subdir('srcbmi') subdir('utils') # add autotest directory -subdir('autotest') +fs = import('fs') +if fs.is_dir('autotest') + subdir('autotest') +endif # meson tests to evaluate installation success testdir = meson.project_source_root() / '.mf6minsim'