1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-07-22 10:47:43 +02:00

Remove HL HDF5 from CMake

This commit is contained in:
q-posev 2023-04-03 22:48:42 +02:00
parent fbd44013db
commit 3646825790
No known key found for this signature in database
GPG Key ID: 7C477A462FBF9B87

View File

@ -66,7 +66,7 @@ option(ENABLE_HDF5 "Enable HDF5 support" ON)
if(ENABLE_HDF5)
# Try to detect HDF5 installation using built-in FindHDF5.cmake macro.
find_package(HDF5 REQUIRED COMPONENTS C HL)
find_package(HDF5 REQUIRED COMPONENTS C)
if(HDF5_FOUND)
message(STATUS "HDF5 version :: ${HDF5_VERSION}")
@ -87,9 +87,7 @@ if(ENABLE_HDF5)
# - include directories with HDF5 header files
target_include_directories(trexio PRIVATE ${HDF5_C_INCLUDE_DIRS})
# - link to HDF5 C libraries
target_link_libraries(trexio PRIVATE
${HDF5_C_HL_LIBRARIES}
${HDF5_C_LIBRARIES})
target_link_libraries(trexio PRIVATE ${HDF5_C_LIBRARIES})
endif()
# Private headers have to be listed as sources, otherwise they are installed