Skip to content

Commit

Permalink
update HDF5 find_package and link recipe from Lynn
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjunk committed Apr 12, 2023
1 parent 43d484e commit c4b7e2c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,7 @@ find_package(FFTW3 REQUIRED EXPORT)
find_ups_product( sqlite )
find_ups_product( nlohmann_json )
find_ups_product( highfive )

string(TOUPPER ${CMAKE_BUILD_TYPE} BTYPE_UC )
if( ${BTYPE_UC} MATCHES "DEBUG" )
find_library( LIBHDF5 NAMES hdf5_debug PATHS ENV HDF5_LIB NO_DEFAULT_PATH)
else()
find_library( LIBHDF5 NAMES hdf5 PATHS ENV HDF5_LIB NO_DEFAULT_PATH)
endif()
include_directories(${HDF5_INCLUDE_DIRS})

find_package(HDF5 REQUIRED EXPORT)

# Define an export set for tool support to enable simpler per-tool build
# call.
Expand Down
2 changes: 1 addition & 1 deletion dunecore/DAQTriggerSim/FDHDDAQWriter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ art_make(MODULE_LIBRARIES
messagefacility::MF_MessageLogger
CETLIB
ROOT_BASIC_LIB_LIST
LIBHDF5
HDF5::HDF5
dunecore::ChannelMap_FDHDChannelMapService_service
BASENAME_ONLY
)
Expand Down
2 changes: 1 addition & 1 deletion dunecore/DuneObj/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ art_make(
cetlib::cetlib
cetlib_except::cetlib_except
ROOT_BASIC_LIB_LIST
LIBHDF5
HDF5::HDF5
DICT_LIBRARIES
# EXCLUDE OpDetDivRec.h OpDetDivRec.cc
)
Expand Down
2 changes: 1 addition & 1 deletion dunecore/HDF5Utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ art_make_library(LIBRARY_NAME HDF5Utils
art::Framework_Core
art::Framework_Principal
art::Framework_Services_Registry
LIBHDF5
HDF5::HDF5
pthread
z
)
Expand Down
2 changes: 1 addition & 1 deletion dunecore/HDF5Utils/dunedaqhdf5utils2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ art_make(
cetlib::cetlib
cetlib_except::cetlib_except
messagefacility::MF_MessageLogger
LIBHDF5
HDF5::HDF5
pthread
z
)
Expand Down
2 changes: 1 addition & 1 deletion dunecore/RawDecoding/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cet_build_plugin(FDHDDataInterface art::tool
art::Persistency_Provenance
messagefacility::MF_MessageLogger
dunecore::HDF5Utils
LIBHDF5
HDF5::HDF5
)

install_headers()
Expand Down

0 comments on commit c4b7e2c

Please sign in to comment.