[cmake-developers] [CMake 0015432]: FindHDF5 HDF5_USE_STATIC_LIBRARIES should only apply to HD5 specific libraries

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 6 08:01:44 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15432 
====================================================================== 
Reported By:                Sascha Kratky
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15432
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-06 08:01 EST
Last Modified:              2015-03-06 08:01 EST
====================================================================== 
Summary:                    FindHDF5 HDF5_USE_STATIC_LIBRARIES should only apply
to HD5 specific libraries
Description: 
When HDF5_USE_STATIC_LIBRARIES is set to ON, i.e.:

	set (HDF5_USE_STATIC_LIBRARIES ON)
	find_package (HDF5)

the module also links system libraries like libm, librt, libdl and libpthread
statically. This does not work for shared libraries under Linux. The
HDF5_USE_STATIC_LIBRARIES should only affect the linking of HDF5 related
libraries libhdf5, libhdf5_hl libhdf5_cpp.a.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-06 08:01 Sascha Kratky  New Issue                                    
======================================================================



More information about the cmake-developers mailing list