<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi,</div><div>I'm experiencing troubles with cmake 3.6.2 and FindHDF5.cmake module in Debian/Testing.</div><div>I'm trying to build med-fichier and gmsh for instance.</div><div><br></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">The main CMakeList.txt contains:</p><p style="margin: 0px;" data-mce-style="margin: 0px;">find_package(HDF5 COMPONENTS C)<br> MESSAGE("HDF5_C_INCLUDE_DIR=${HDF5_C_INCLUDE_DIR}")<br> MESSAGE("HDF5_CXX_INCLUDE_DIR=${HDF5_CXX_INCLUDE_DIR}")<br> MESSAGE("HDF5_INCLUDE_DIR=${HDF5_INCLUDE_DIR}")<br> MESSAGE("HDF5_INCLUDE_DIRS=${HDF5_INCLUDE_DIRS}")<br> MESSAGE("HDF5_LIBRARIES=${HDF5_LIBRARIES}")<br> MESSAGE("HDF5_C_LIBRARIES=${HDF5_C_LIBRARIES}")</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p>For those two using something like cmake .. -DHDF5_PREFER_PARALLEL:BOOL=ON  to force the use of the mpi version</div><div>I end up with error like that:</div><div><br></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">-- HDF5: Using hdf5 compiler wrapper to determine C configuration<br>-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS HDF5_HL_LIBRARIES) <br>HDF5_C_INCLUDE_DIR=HDF5_C_INCLUDE_DIR-NOTFOUND<br>HDF5_CXX_INCLUDE_DIR=HDF5_CXX_INCLUDE_DIR-NOTFOUND<br>HDF5_INCLUDE_DIR=<br>HDF5_INCLUDE_DIRS=HDF5_C_INCLUDE_DIR-NOTFOUND;HDF5_CXX_INCLUDE_DIR-NOTFOUND<br>HDF5_LIBRARIES=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;HDF5_hdf5_LIBRARY-NOTFOUND;HDF5_hdf5_cpp_LIBRARY-NOTFOUND;HDF5_hdf5_LIBRARY-NOTFOUND<br>HDF5_C_LIBRARIES=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;HDF5_hdf5_LIBRARY-NOTFOUND<br>-- HDF5 not found</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">whereas hdf5 is installed!!</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p></div><div>I also tried to see what happens in FindHDF5.cmake by printing some additionnal messages:</div><div><br></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">-- HDF5: Using hdf5 compiler wrapper to determine C configuration<br> HDF5_C_INCLUDE_DIRS = /usr/include/hdf5/openmpi;/usr/include/hdf5/openmpi<br> HDF5_C_DEFINITIONS =-D_LARGEFILE64_SOURCE;-D_LARGEFILE_SOURCE;-D_FORTIFY_SOURCE=2;-D_LARGEFILE64_SOURCE;-D_LARGEFILE_SOURCE;-D_FORTIFY_SOURCE=2<br> HDF5_C_LIBRARY_DIRS = /usr/lib/x86_64-linux-gnu/hdf5/openmpi<br> HDF5_C_LIBRARY_NAMES = hdf5;sz;z;dl;m<br> HDF5_C_HL_LIBRARY_NAMES = hdf5_hl<br>HDF5_C_HL_LIBRARIES = /usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5_hl.so<br> HDF5_C_IS_PARALLEL=TRUE<br> HDF5_IS_PARALLEL=FALSE<br>CMake Warning at /usr/share/cmake-3.6/Modules/FindHDF5.cmake:613 (message):<br> HDF5 found for language C is parallel but previously found language is not<br> parallel.<br>Call Stack (most recent call first):<br> CMakeLists.txt:853 (find_package)</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">It seems to me that HDF5_IS_PARALLEL is never set before...</p></div><div><span name="x"></span><div><br><div>Is there a proper new way to find hdf5 with cmake?</div><div>What is the problem with my actual way of doing it?</div><div><br></div><div>Thanks for any help</div><div>Best</div><div><br></div>Christophe TROPHIME<br>Research Engineer<br><div><br></div>    CNRS - LNCMI<br>25, rue des Martyrs<br>BP 166<br>38042 GRENOBLE Cedex 9<br>FRANCE    <br><div><br></div>Tel : +33 (0)4 76 88 90 02 <br>Fax : +33 (0) 4 76 88 10 01<br>Office U 19 <br>M@il : christophe.trophime@lncmi.cnrs.fr </div><span name="x"></span><br></div></div></body></html>