One more thing that could be a problem, our cmake integration is new and has 
not been tested everywhere yet. It is tested on Windows extensively, linux gets 
tested in a couple of configurations, other platforms are to be incorporated as 
the resources become available. 

Any chance you can build HDF5 standalone, without using ExternalProject_add()? 
Just to make sure that it works on your platform?

Allen

> Interesting. I wouldn't think you need to pass in the COMPILER args since it 
> should use the same settings as the parent project. Post 1.8.6 code has been 
> tested as an external project, but with compression libs explictly 
> enabled/disabled. Have you inspected the generated files to determine if they 
> make sense. How about the log files for any clues?
> Can you use a 1.8.7 snapshot? There was significant cmake code changes after 
> 1.8.6 concerning use as an External Project.
> 
> Allen
> 
> 
> > I satisfy both of those expectations.  If you're curious what I'm doing is:
> > 
> > # External_HDF5.cmake
> > #
> > # gets C/CXX stuff from parent project
> > # BRAINS3_INSTALL_PREFIX = local install dir for prerequisites for BRAINS3
> > # BUILD_SHARED_LIBS = whether or not to build shared libs. Normally On.
> > include(ExternalProject)
> > 
> > ExternalProject_add(HDF5
> >   SOURCE_DIR HDF5
> >   BINARY_DIR HDF5-build
> >   URL "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.6.tar.gz";
> >   URL_MD5 bd2d369dfcf7aa0437dde6aeb8460a31
> >   UPDATE_COMMAND ""
> >   CMAKE_ARGS
> >   -DCMAKE_CXX_COMPILER:STRING=${CMAKE_CXX_COMPILER}
> >   -DCMAKE_CXX_COMPILER_ARG1:STRING=${CMAKE_CXX_COMPILER_ARG1}
> >   -DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}
> >   -DCMAKE_C_COMPILER_ARG1:STRING=${CMAKE_C_COMPILER_ARG1}
> >   -DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS}
> >   -DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
> >   -DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
> >   -DCMAKE_INSTALL_PREFIX:PATH=${BRAINS3_INSTALL_PREFIX}
> >   INSTALL_DIR ${BRAINS3_INSTALL_PREFIX}
> > )
> > 
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to