[CMake] cmake link issue

Jim Edwards jedwards at ucar.edu
Thu Feb 19 16:23:09 EST 2015


The FindHDF5.cmake returns this for HDF5_C_LIBRARIES

/soft/libraries/hdf5/1.8.14/cnk-xl/V1R2M2-20150213/lib/libhdf5.a;/soft/libraries/alcf/current/xl/ZLIB/lib/libz.a;/usr/lib64/libdl.so;/usr/lib64/libm.so;/soft/libraries/hdf5/1.8.14/cnk-xl/V1R2M2-20150213/lib/libhdf5_hl.a;/soft/libraries/hdf5/1.8.14/cnk-xl/V1R2M2-20150213/lib/libhdf5.a



​Note that it contains a mixture of static and shared libraries​.

Trying to link with this gives a predictable error:
ld: attempted static link of dynamic object `/usr/lib64/libdl.so'

How do I get cmake to give me a proper list of libs and dependancies for
HDF5?



-- 
Jim Edwards

CESM Software Engineer
National Center for Atmospheric Research
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150219/7bc6d9e1/attachment.html>


More information about the CMake mailing list