diff options
-rw-r--r-- | var/spack/repos/builtin/packages/conduit/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py index 27b257f6be..e3bd8598cd 100644 --- a/var/spack/repos/builtin/packages/conduit/package.py +++ b/var/spack/repos/builtin/packages/conduit/package.py @@ -73,6 +73,8 @@ class Conduit(CMakePackage): # variants for comm and i/o variant("mpi", default=True, description="Build Conduit 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("hdf5", default=True, description="Build Conduit HDF5 support") variant("hdf5_compat", default=True, description="Build Conduit with HDF5 1.8.x (compatibility mode)") @@ -490,6 +492,10 @@ class Conduit(CMakePackage): cfg.write(cmake_cache_entry("ENABLE_MPI", "ON")) cfg.write(cmake_cache_entry("MPI_C_COMPILER", mpicc_path)) cfg.write(cmake_cache_entry("MPI_CXX_COMPILER", mpicxx_path)) + 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")) if "+fortran" in spec: cfg.write(cmake_cache_entry("MPI_Fortran_COMPILER", mpifc_path)) |