pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

compilation fails with -DUSE_HDF5=AUTO #427

Closed jbigot closed 2 months ago

jbigot commented 2 years ago

compilation with -DUSE_HDF5=AUTO (the default) leads to the following error when no HDF5 is found:

CMake Warning at cmake/FindHDF5.cmake:751 (message):
  HDF5 found for language C is parallel but previously found language is not
  parallel.
Call Stack (most recent call first):
  CMakeLists.txt:58 (find_package)

CMake Error at CMakeLists.txt:63 (message):
  Parallel HDF5 required, sequential HDF5 only found.  Please set
  -DBUILD_HDF5_PARALLEL=OFF to disable parallel HDF5

This is likely due to a leak of config variables from the unfound initial find.

jbigot commented 2 years ago

For now this can be worked-around by explicitly passing -DUSE_HDF5=EMBEDDED

jbigot commented 2 years ago

mentioned in commit b714baa5da69cfacfa71e9dead36084d19a486d0