summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>2022-05-19 12:06:31 -0500
committerGitHub <noreply@github.com>2022-05-19 10:06:31 -0700
commita225a5b27662fdfcd82aeb479034f7abda5496ce (patch)
tree4626aa4c2392ae5340df4570695d404456cbcfe1
parentc9cfc548da4ec7a336ca63dcf81a0a46c8f4112f (diff)
downloadspack-a225a5b27662fdfcd82aeb479034f7abda5496ce.tar.gz
spack-a225a5b27662fdfcd82aeb479034f7abda5496ce.tar.bz2
spack-a225a5b27662fdfcd82aeb479034f7abda5496ce.tar.xz
spack-a225a5b27662fdfcd82aeb479034f7abda5496ce.zip
Ascent: Add variant to disable blt_find_mpi (#30735)
This is needed to find MPI correctly on cray systems and similar.
-rw-r--r--var/spack/repos/builtin/packages/ascent/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ascent/package.py b/var/spack/repos/builtin/packages/ascent/package.py
index be3ca2a333..ca6c276bab 100644
--- a/var/spack/repos/builtin/packages/ascent/package.py
+++ b/var/spack/repos/builtin/packages/ascent/package.py
@@ -69,6 +69,8 @@ class Ascent(CMakePackage, CudaPackage):
variant('test', default=True, description='Enable Ascent unit tests')
variant("mpi", default=True, description="Build Ascent MPI Support")
+ # set to false for systems that implicitly link mpi
+ variant('blt_find_mpi', default=True, description='Use BLT CMake Find MPI logic')
variant("serial", default=True, description="build serial (non-mpi) libraries")
# variants for language support
@@ -486,6 +488,10 @@ class Ascent(CMakePackage, CudaPackage):
cfg.write(cmake_cache_entry("MPIEXEC",
mpiexe_bin))
+ if "+blt_find_mpi" in spec:
+ cfg.write(cmake_cache_entry("ENABLE_FIND_MPI", "ON"))
+ else:
+ cfg.write(cmake_cache_entry("ENABLE_FIND_MPI", "OFF"))
###################################
# BABELFLOW (also depends on mpi)
###################################