Open KrisThielemans opened 1 year ago
I have the same problem.
HDF5 is not a requirement in our project, yet I get this error message:
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find HDF5: (Required is at least version "1.10.5") (found
HDF5_hdf5_LIBRARY-NOTFOUND;HDF5_hdf5_cpp_LIBRARY-NOTFOUND;HDF5_hdf5_LIBRARY-NOTFOUND)
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.28/Modules/FindHDF5.cmake:1025 (find_package_handle_standard_args)
generated/CMakeLists.txt:19 (find_package)
-- Configuring incomplete, errors occurred!
@yassirnajmaoui this is actually a different issue. You are asking if it's possible to exclude HDF5 from the compilation (ideally with a CMake option), while the above is on what should be in the CMakeLists.txt when using HDF5. @naegelejd @johnstairs possibly move @yassirnajmaoui's comment to a new issue?
In fact, there's #105 already!
CMAKE_CXX_STANDARD
(what's the current minimum?)target_include_directories
find_package(HDF5)
? (it'll be overwritten, no?)