[CMake] Components not recognized with FindHDF5.cmake

Reza Housseini reza.housseini at gmx.ch
Mon Oct 21 01:45:30 EDT 2013


Hello

I try to find the hdf5 libraries, but it seems that the components are not
recognized. I use

    FIND_PACKAGE(HDF5 COMPONENTS C CXX HL REQUIRED)

but it only comes up with the libhdf5.so and doesn't detect libhdf5_cpp.so
and libhdf5_hl.so. I also cleaned the whole build directory but without
success.

It seems that it doesn't even look for the libraries because in the find
script the execution already skips the components at the beginning

    IF (NOT HDF%_FIND_COMPONENTS)
      SET(HDF5_LANGUAGE_BINDINGS "C")
    ELSE ()
      # This part is not executed
      ....
    ENDIF()

Thanks for any hints

Cheers Reza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131021/0de98223/attachment.htm>


More information about the CMake mailing list