summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@lanl.gov>2019-05-17 08:57:35 -0600
committerGitHub <noreply@github.com>2019-05-17 08:57:35 -0600
commit2af7688c55e1ed5afff917bef7caa2f895f087b2 (patch)
treee9757b53a5d6968df475a510567085261505c825 /var
parent900f8f0806609a32050b2a1f57d68bc45c064fa9 (diff)
downloadspack-2af7688c55e1ed5afff917bef7caa2f895f087b2.tar.gz
spack-2af7688c55e1ed5afff917bef7caa2f895f087b2.tar.bz2
spack-2af7688c55e1ed5afff917bef7caa2f895f087b2.tar.xz
spack-2af7688c55e1ed5afff917bef7caa2f895f087b2.zip
parsplice: needs LAMMPS_EXCEPTIONS (#11500)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/lammps/package.py4
-rw-r--r--var/spack/repos/builtin/packages/parsplice/package.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lammps/package.py b/var/spack/repos/builtin/packages/lammps/package.py
index 4d95bfa8c8..ac8b4c8977 100644
--- a/var/spack/repos/builtin/packages/lammps/package.py
+++ b/var/spack/repos/builtin/packages/lammps/package.py
@@ -58,6 +58,8 @@ class Lammps(CMakePackage):
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 @@ class Lammps(CMakePackage):
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')
diff --git a/var/spack/repos/builtin/packages/parsplice/package.py b/var/spack/repos/builtin/packages/parsplice/package.py
index 55c3644f35..a3fb2abf07 100644
--- a/var/spack/repos/builtin/packages/parsplice/package.py
+++ b/var/spack/repos/builtin/packages/parsplice/package.py
@@ -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']