Fix finding hdf5 on CMake reconfigure

This commit is contained in:
Pieter Hijma
2025-05-07 12:15:11 +02:00
committed by Chris Hennes
parent 098faceb66
commit e7f0418966

View File

@@ -113,10 +113,6 @@ macro(SetupSalomeSMESH)
add_compile_options(${HDF5_CFLAGS})
link_directories(${HDF5_LIBRARY_DIRS})
link_libraries(${HDF5_LIBRARIES})
find_file(Hdf5dotH hdf5.h PATHS ${HDF5_INCLUDE_DIRS} NO_DEFAULT_PATH)
if(NOT Hdf5dotH)
message( FATAL_ERROR "${HDF5_VARIANT} development header not found.")
endif()
endif()
check_include_file_cxx(hdf5.h HDF5_FOUND)
if(NOT HDF5_FOUND)