parsplice: needs LAMMPS_EXCEPTIONS (#11500)
This commit is contained in:
parent
900f8f0806
commit
2af7688c55
2 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue