From a225a5b27662fdfcd82aeb479034f7abda5496ce Mon Sep 17 00:00:00 2001 From: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> Date: Thu, 19 May 2022 12:06:31 -0500 Subject: Ascent: Add variant to disable blt_find_mpi (#30735) This is needed to find MPI correctly on cray systems and similar. --- var/spack/repos/builtin/packages/ascent/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') 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) ################################### -- cgit v1.2.3-60-g2f50