I have a question about the static library option. I did:
set( HDF5_USE_STATIC_LIBRARIES 1 )
which should trigger linkage with static libraries, right? But what
I see in the link line is:
/usr/lib/libz.dylib /usr/lib/libm.dylib /jcs/apps/hdf5_serial/lib/
libhdf5_cpp.dylib /usr/lib/libz.dylib /usr/lib/libm.dylib /jcs/apps/
hdf5_serial/lib/libhdf5_cpp.dylib
Okay - it appears that was due to an out of date cache. It now tries
to link static HDF5 libraries, but is still trying to link dynamic "z"
and "m" libraries:
/usr/lib/libm.dylib /jcs/apps/hdf5_serial/lib/libhdf5_cpp.a /usr/lib/
libz.dylib /usr/lib/libm.dylib /jcs/apps/hdf5_serial/lib/libhdf5_cpp.a
Previously, I was adding these via
target_link_libraries( ... z )
Are these two equivalent?
One other question: if one requests the "CXX" component for HDF5, the
hdf5_cpp library is linked in, but the hdf5 library is also required.
Adding "C" and "CXX" as components fixes this problem. Perhaps the
FindHDF5.cmake file could automatically activate "C" if "CXX" is
requested? That might be more robust...
Thanks again for the contribution!
James
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake