parsplice: needs LAMMPS_EXCEPTIONS (#11500)

This commit is contained in:
Christoph Junghans 2019-05-17 08:57:35 -06:00 committed by GitHub
parent 900f8f0806
commit 2af7688c55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -58,6 +58,8 @@ def url_for_version(self, version):
description='Build the liblammps in addition to the executable')
variant('mpi', default=True,
description='Build with mpi')
variant('exceptions', default=False,
description='Build with lammps exceptions')
depends_on('mpi', when='+mpi')
depends_on('mpi', when='+mpiio')
@ -102,6 +104,8 @@ def cmake_args(self):
args = [
'-DBUILD_SHARED_LIBS={0}'.format(
'ON' if '+lib' in spec else 'OFF'),
'-DLAMMPS_EXCEPTIONS={0}'.format(
'ON' if '+exceptions' in spec else 'OFF'),
'-D{0}_MPI={1}'.format(
mpi_prefix,
'ON' if '+mpi' in spec else 'OFF')

View file

@ -26,6 +26,7 @@ class Parsplice(CMakePackage):
depends_on("mpi")
depends_on("eigen@3:")
depends_on("lammps+lib@20170901:")
depends_on("lammps+lib+exceptions@20170901:", when="@1.2:")
def cmake_args(self):
options = ['-DBUILD_SHARED_LIBS=ON', '-DBoost_NO_BOOST_CMAKE=ON']