Hi Franck,

On Wed, Aug 5, 2015 at 8:10 PM, houssen <[email protected]> wrote:
> Hello Peter,
>
> I run Ubuntu-14.04 (that provides CMake-2.8). I use CMake-3.3.0 that I had
> to build from source. I use modules.
> Is there a specific feature to turn on when building CMake ? HDF5 ? Or some
> missing commands (prepend-path) in module files ? Or any other suggestions ?
>
> Franck


I'm not much of an expert with CMake and even less with HDF5, but
CMake's HDF5 module is called FindHDF5.cmake .  On my Ubuntu 15.04
installation, it is located here:

/usr/share/cmake-3.0/Modules/FindHDF5.cmake

Some suggestions might be:

1)  Make sure you are loading your v3.3 FindHDF5.cmake and not the v2.8 one.
2)  Throw in the CMake equivalent of print-statements
[http://www.cmake.org/cmake/help/v3.0/command/message.html] to see how
things are set.

On my version of CMake (3.0.2), the relevant section in FindHDF5.cmake
seems to be:

    # If the HDF5 include directory was found, open H5pubconf.h to determine if
    # HDF5 was compiled with parallel IO support
    set( HDF5_IS_PARALLEL FALSE )
    foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
        if( EXISTS "${_dir}/H5pubconf.h" )
            file( STRINGS "${_dir}/H5pubconf.h"
                HDF5_HAVE_PARALLEL_DEFINE
                REGEX "HAVE_PARALLEL 1" )
            if( HDF5_HAVE_PARALLEL_DEFINE )
                set( HDF5_IS_PARALLEL TRUE )
            endif()
        endif()
    endforeach()

I don't know HDF5 well enough to understand this.  It seems to
indicate HDF5 PARALLEL is true if H5pubconf.h is found?

Ray

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to