Ascent: Add variant to disable blt_find_mpi (#30735)
This is needed to find MPI correctly on cray systems and similar.
This commit is contained in:
parent
c9cfc548da
commit
a225a5b276
1 changed files with 6 additions and 0 deletions
|
@ -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 @@ def hostconfig(self):
|
|||
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)
|
||||
###################################
|
||||
|
|
Loading…
Reference in a new issue