Skip to content

Commit

Permalink
refactor(meson.build): check for autotest/ before calling subdir() (M…
Browse files Browse the repository at this point in the history
…ODFLOW-USGS#1589)

* makes the autotest subdirectory of the proj root optional
* motivation: distribution doesn't contain autotest folder
  • Loading branch information
wpbonelli authored Feb 7, 2024
1 parent 2b9b14b commit 3946eef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3946eef

Please sign in to comment.