Respect RESINSIGHT_ENABLED_HDF5 flag on linux.

This commit is contained in:
Kristian Bendiksen 2024-08-16 13:50:25 +02:00
parent b324fdb26b
commit 3f2c669bc4

View File

@ -422,6 +422,7 @@ if(MSVC)
)
endif()
else()
if(RESINSIGHT_ENABLE_HDF5)
find_package(HDF5 COMPONENTS CXX)
if(HDF5_FOUND)
list(APPEND EXTERNAL_LINK_LIBRARIES ${HDF5_LIBRARIES})
@ -438,6 +439,7 @@ else()
else()
message(WARNING "Use of HDF5 is enabled, but no HDF5 is found.")
endif() # HDF5_FOUND
endif()
endif() # MSVC
# ##############################################################################