summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2018-10-29 15:46:35 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-29 13:46:35 -0700
commit1e54a42cc977b6889a1e0e1a4e768e851aa6a7d6 (patch)
tree4eb3dfd085405bde4c5f1f41290760411eee51fd /var
parent8d4c15e0bd30fe2eaaecdc722bcd7beb17fed81a (diff)
downloadspack-1e54a42cc977b6889a1e0e1a4e768e851aa6a7d6.tar.gz
spack-1e54a42cc977b6889a1e0e1a4e768e851aa6a7d6.tar.bz2
spack-1e54a42cc977b6889a1e0e1a4e768e851aa6a7d6.tar.xz
spack-1e54a42cc977b6889a1e0e1a4e768e851aa6a7d6.zip
hoomd-blue: fixing issue during build with newer cmakes (#9543)
* Constrain to build with CMake <= 3.9.6 * Specify installation prefix to match install prefix format of other Spack python libraries
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hoomd-blue/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/hoomd-blue/package.py b/var/spack/repos/builtin/packages/hoomd-blue/package.py
index b00843bcc0..4120e03410 100644
--- a/var/spack/repos/builtin/packages/hoomd-blue/package.py
+++ b/var/spack/repos/builtin/packages/hoomd-blue/package.py
@@ -51,7 +51,7 @@ class HoomdBlue(CMakePackage):
extends('python')
depends_on('python@2.7:')
depends_on('py-numpy@1.7:', type=('build', 'run'))
- depends_on('cmake@2.8.0:', type='build')
+ depends_on('cmake@2.8.0:3.9.6', type='build')
depends_on('pkgconfig', type='build')
depends_on('mpi', when='+mpi')
depends_on('cuda@7.0:', when='+cuda')
@@ -59,9 +59,12 @@ class HoomdBlue(CMakePackage):
def cmake_args(self):
spec = self.spec
+ install_dir = spec['python'].package.site_packages_dir
+ install_path = os.path.join(spec.prefix, install_dir)
cmake_args = [
'-DPYTHON_EXECUTABLE={0}'.format(spec['python'].command.path),
+ '-DCMAKE_INSTALL_PREFIX={0}'.format(install_path)
]
# MPI support