Skip to content

Commit

Permalink
Merge branch 'develop' into task/2021_04_reloc_install_dir_support
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Apr 29, 2021
2 parents 2aba8d0 + 6f9d5b4 commit 6e0a039
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 41 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -70,7 +70,7 @@ install:

# Install CMake 3.9
############################################################################
- ps: Start-FileDownload 'http://portal.nersc.gov/project/visit/cmake/cmake-3.9.6-win64-x64.msi'
- ps: Start-FileDownload 'http://ascent-dav.org/mirror/cmake-3.9.6-win64-x64.msi'
- cmake-3.9.6-win64-x64.msi /passive
- set PATH=C:\Program Files\CMake\bin;%PATH%
- cmake --version
Expand Down
2 changes: 1 addition & 1 deletion hashes.txt
@@ -1 +1 @@
blt branch='develop' commit='aea5fbf046e122bd72888dad0a7f97a07b9ff08d'
blt branch='develop' commit='86a7d6b5ee93d8b7b3233a3e54a4f06f8d8308d3'
2 changes: 1 addition & 1 deletion src/blt
Submodule blt updated 161 files
22 changes: 0 additions & 22 deletions src/cmake/Setup3rdParty.cmake
Expand Up @@ -151,26 +151,4 @@ if(H5ZZFP_DIR)
endif()
endif()

##################################
# Export BLT Targets when needed
##################################

set(BLT_TPL_DEPS_EXPORTS)
# cmake < 3.15, we use BLT's mpi target and need to export
# it for use downstream
if( ${CMAKE_VERSION} VERSION_LESS "3.15.0" )
blt_list_append(TO BLT_TPL_DEPS_EXPORTS ELEMENTS mpi IF ENABLE_MPI)
endif()

foreach(dep ${BLT_TPL_DEPS_EXPORTS})
# If the target is EXPORTABLE, add it to the export set
get_target_property(_is_imported ${dep} IMPORTED)
if(NOT ${_is_imported})
install(TARGETS ${dep}
EXPORT conduit
DESTINATION lib)
# Namespace target to avoid conflicts
set_target_properties(${dep} PROPERTIES EXPORT_NAME conduit::blt_${dep})
endif()
endforeach()

13 changes: 5 additions & 8 deletions src/cmake/SetupBLT.cmake
Expand Up @@ -32,17 +32,14 @@ include(${BLT_SOURCE_DIR}/SetupBLT.cmake)
if(ENABLE_MPI)
# adjust MPI from BLT
if( ${CMAKE_VERSION} VERSION_LESS "3.15.0" )
# older cmake, we use BLT imported targets
# this is simply a target alias
blt_register_library(NAME conduit_blt_mpi_deps
LIBRARIES mpi)
# older cmake, we use BLT's mpi support, it uses
# the name mpi
set(conduit_blt_mpi_deps mpi CACHE STRING "")
else()
if(TARGET MPI::MPI_CXX)
message(STATUS "Using MPI CMake imported target: MPI::MPI_CXX")
# newer cmake we use find mpi targets directly,
# this is simply a target alias
blt_register_library(NAME conduit_blt_mpi_deps
LIBRARIES MPI::MPI_CXX)
# newer cmake we use find mpi targets directly
set(conduit_blt_mpi_deps MPI::MPI_CXX CACHE STRING "")
else()
message(FATAL_ERROR "Cannot use CMake imported targets for MPI."
"(CMake > 3.15, ENABLE_MPI == ON, but "
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/SetupTests.cmake
Expand Up @@ -64,7 +64,7 @@ function(add_cpp_mpi_test)
blt_add_executable( NAME ${args_TEST}
SOURCES ${args_TEST}.cpp ${args_SOURCES}
OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS_ON "${args_DEPENDS_ON}" gtest conduit_blt_mpi_deps)
DEPENDS_ON "${args_DEPENDS_ON}" gtest ${conduit_blt_mpi_deps})

blt_add_test( NAME ${args_TEST}
COMMAND ${args_TEST}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/blueprint/CMakeLists.txt
Expand Up @@ -170,7 +170,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/conduit_blueprint_exports.h)
# Specify blueprint mpi deps
#
set(conduit_blueprint_mpi_deps conduit
conduit_blt_mpi_deps
${conduit_blt_mpi_deps}
conduit_blueprint
conduit_relay_mpi)

Expand Down
6 changes: 3 additions & 3 deletions src/libs/relay/CMakeLists.txt
Expand Up @@ -171,7 +171,7 @@ endif()
if(HDF5_FOUND)
list(APPEND conduit_relay_deps hdf5)
if(HDF5_IS_PARALLEL)
list(APPEND conduit_relay_deps conduit_blt_mpi_deps)
list(APPEND conduit_relay_deps ${conduit_blt_mpi_deps})
endif()
endif()

Expand Down Expand Up @@ -306,7 +306,7 @@ set(conduit_relay_mpi_sources conduit_relay_mpi.cpp)
# Specify the relay mpi deps
#
set(conduit_relay_mpi_deps conduit
conduit_blt_mpi_deps)
${conduit_blt_mpi_deps})

#
# setup conduit relay mpi lib
Expand Down Expand Up @@ -343,7 +343,7 @@ set(conduit_relay_mpi_io_headers conduit_relay_mpi_io.hpp)
# Specify the relay mpi io deps
#
set(conduit_relay_mpi_io_deps conduit
conduit_blt_mpi_deps
${conduit_blt_mpi_deps}
conduit_relay_mpi
conduit_relay)

Expand Down
6 changes: 3 additions & 3 deletions src/tests/thirdparty/CMakeLists.txt
Expand Up @@ -62,7 +62,7 @@ endif()
if(HDF5_FOUND)
message(STATUS "HDF5 enabled: Adding related unit tests")
if(HDF5_IS_PARALLEL)
set(HDF5_MPI_DEP conduit_blt_mpi_deps)
set(HDF5_MPI_DEP ${conduit_blt_mpi_deps})
endif()
add_cpp_test(TEST t_hdf5_smoke
DEPENDS_ON hdf5 ${HDF5_MPI_DEP}
Expand All @@ -74,7 +74,7 @@ endif()

if(SILO_FOUND)
if(HDF5_FOUND AND HDF5_IS_PARALLEL)
set(SILO_HDF5_MPI_DEP conduit_blt_mpi_deps)
set(SILO_HDF5_MPI_DEP ${conduit_blt_mpi_deps})
endif()
message(STATUS "Silo enabled: Adding related unit tests")
add_cpp_test(TEST t_silo_smoke
Expand Down Expand Up @@ -117,7 +117,7 @@ endif()
if(H5ZZFP_FOUND)
message(STATUS "h5z-zfp enabled: Adding related unit tests")
if(HDF5_IS_PARALLEL)
set(H5ZZFP_MPI_DEP conduit_blt_mpi_deps)
set(H5ZZFP_MPI_DEP ${conduit_blt_mpi_deps})
endif()
add_cpp_test(TEST t_h5z_zfp_smoke
DEPENDS_ON h5zzfp zfp hdf5 ${H5ZZFP_MPI_DEP}
Expand Down

0 comments on commit 6e0a039

Please sign in to comment.