summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJared Popelar <jdpopelar@gmail.com>2022-11-17 11:40:53 -0700
committerGitHub <noreply@github.com>2022-11-17 10:40:53 -0800
commit381bedf3693bbd228915c28fc47d73dbd60af1cd (patch)
treeb4ce064504f2208f2a1deef48085378808b1dc5a /lib
parent6811651a0f546b6c59f421f9a92828a108b4f8c8 (diff)
downloadspack-381bedf3693bbd228915c28fc47d73dbd60af1cd.tar.gz
spack-381bedf3693bbd228915c28fc47d73dbd60af1cd.tar.bz2
spack-381bedf3693bbd228915c28fc47d73dbd60af1cd.tar.xz
spack-381bedf3693bbd228915c28fc47d73dbd60af1cd.zip
Hdf5 package: build on Windows (#31141)
* Enable hdf5 build (including +mpi) on Windows * This includes updates to hdf5 dependencies openssl (minor edit) and bzip2 (more-extensive edits) * Add binary-based installation of msmpi (this is currently the only supported MPI implementation in Spack for Windows). Note that this does not install to the Spack-specified prefix. This implementation will be replaced with a source-based implementation Co-authored-by: John Parent <john.parent@kitware.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/getting_started.rst2
-rw-r--r--lib/spack/spack/spec.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst
index 1bf99e09b3..0c30c9a694 100644
--- a/lib/spack/docs/getting_started.rst
+++ b/lib/spack/docs/getting_started.rst
@@ -1704,9 +1704,11 @@ dependencies or incompatible build tools like autoconf. Here are several
packages known to work on Windows:
* abseil-cpp
+* bzip2
* clingo
* cpuinfo
* cmake
+* hdf5
* glm
* nasm
* netlib-lapack (requires Intel Fortran)
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 401be97858..5c688d916f 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -1089,7 +1089,7 @@ def _libs_default_handler(descriptor, spec, cls):
home = getattr(spec.package, "home")
# Avoid double 'lib' for packages whose names already start with lib
- if not name.startswith("lib"):
+ if not name.startswith("lib") and not spec.satisfies("platform=windows"):
name = "lib" + name
# If '+shared' search only for shared library; if '~shared' search only for