Skip to content

Commit

Permalink
Add MPI variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed May 15, 2024
1 parent 5fdea70 commit cf4d924
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/thapi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Thapi(AutotoolsPackage):
depends_on('autoconf', type=('build'))
depends_on('libtool', type=('build'))
depends_on('pkgconfig')
# 4.3+ for grouped target
# 4.3+ for grouped target
depends_on('[email protected]:', type=('build'))
depends_on('babeltrace2', type=('build', 'link', 'run'))
depends_on('[email protected]:', type=('build', 'link', 'run'))
Expand All @@ -45,6 +45,9 @@ class Thapi(AutotoolsPackage):
depends_on('python', type=('build'))

variant('strict', default=False, description='Enable -Werror during the build')
variant('mpi', default=False, description='Check if MPI can be used to generated Sync Daemon')
when("+mpi"):
depends_on('mpi', type='build','run')
def configure_args(self):
args = []
args.extend(self.enable_or_disable('strict'))
Expand Down

0 comments on commit cf4d924

Please sign in to comment.