Skip to content

Commit

Permalink
blt updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Apr 15, 2021
1 parent f0ecdb5 commit eb0bce1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blt
2 changes: 1 addition & 1 deletion src/cmake/SetupBLT.cmake
Expand Up @@ -28,7 +28,7 @@ endif()
# if using newer CMake, prefer using MPI as imported targets
################################################################
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.15.0" )
set(BLT_USE_MPI_IMPORTED_TARGETS TRUE CACHE BOOL "")
set(BLT_USE_FIND_MPI_TARGETS TRUE CACHE BOOL "")
endif()


Expand Down
15 changes: 15 additions & 0 deletions src/config/conduit_setup_deps.cmake
Expand Up @@ -142,6 +142,21 @@ if(CONDUIT_HDF5_DIR)
list(REMOVE_ITEM HDF5_LIBRARIES ${HDF5_HL_LIB})
endif()

message(STATUS "HDF5 is parallel: ${HDF5_IS_PARALLEL}")
# if HDF5 was built with parallel support, we need to find MPI
# to make sure the targets propgate correctly.
# in other cases, folks will
if(HDF5_IS_PARALLEL AND NOT MPI_FOUND)
find_package(MPI)
endif()

if(HDF5_IS_PARALLEL)
if(NOT MPI_FOUND)
MESSAGE(FATAL_ERROR "Cannot find MPI, but the HDF5 Conduit is linked to requires MPI support."
" (HDF5_IS_PARALLEL == TRUE). ")
endif()
endif()

else()
message(STATUS "Conduit was NOT built with HDF5 Support")
endif()
Expand Down

0 comments on commit eb0bce1

Please sign in to comment.