mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-25 06:31:43 +02:00
Remove HL HDF5 from CMake
This commit is contained in:
parent
fbd44013db
commit
3646825790
@ -66,7 +66,7 @@ option(ENABLE_HDF5 "Enable HDF5 support" ON)
|
|||||||
|
|
||||||
if(ENABLE_HDF5)
|
if(ENABLE_HDF5)
|
||||||
# Try to detect HDF5 installation using built-in FindHDF5.cmake macro.
|
# 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)
|
if(HDF5_FOUND)
|
||||||
message(STATUS "HDF5 version :: ${HDF5_VERSION}")
|
message(STATUS "HDF5 version :: ${HDF5_VERSION}")
|
||||||
@ -87,9 +87,7 @@ if(ENABLE_HDF5)
|
|||||||
# - include directories with HDF5 header files
|
# - include directories with HDF5 header files
|
||||||
target_include_directories(trexio PRIVATE ${HDF5_C_INCLUDE_DIRS})
|
target_include_directories(trexio PRIVATE ${HDF5_C_INCLUDE_DIRS})
|
||||||
# - link to HDF5 C libraries
|
# - link to HDF5 C libraries
|
||||||
target_link_libraries(trexio PRIVATE
|
target_link_libraries(trexio PRIVATE ${HDF5_C_LIBRARIES})
|
||||||
${HDF5_C_HL_LIBRARIES}
|
|
||||||
${HDF5_C_LIBRARIES})
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Private headers have to be listed as sources, otherwise they are installed
|
# Private headers have to be listed as sources, otherwise they are installed
|
||||||
|
Loading…
Reference in New Issue
Block a user