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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to