MantisBT - CMake
View Issue Details
0013434CMakeCMakepublic2012-07-24 05:282016-06-10 14:31
Julien Bigot 
Kitware Robot 
normalminorsometimes
closedmoved 
Bluegene
CMake 2.8.8 
 
0013434: FindHDF5 does not look up for libraries in the compiler default directories resulting in missing libraries
When generating HDF5_${LANGUAGE}_LIBRARY_DIRS, the directories where it looks for libraries, FindHDF5 only adds explicitely specified directories.
Some libraries are not in these directories, but rather in the compiler default directories.
FindMPI solves this by appending ${CMAKE_${LANGUAGE}_IMPLICIT_LINK_DIRECTORIES} to the list of looked for directories.
The attached patch mimics the FindMPI behaviour that solves the problem
No tags attached.
patch FindHDF5.cmake.patch (605) 2012-07-24 05:28
https://public.kitware.com/Bug/file/4407/FindHDF5.cmake.patch
Issue History
2012-07-24 05:28Julien BigotNew Issue
2012-07-24 05:28Julien BigotFile Added: FindHDF5.cmake.patch
2013-12-18 13:58Sean Patrick SantosNote Added: 0034797
2016-06-10 14:28Kitware RobotNote Added: 0042095
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0034797)
Sean Patrick Santos   
2013-12-18 13:58   
I have encountered this problem on a BlueGene as well. Seems like the fix is relatively harmless to me? It might not be as important when using C compilers to link, but this was causing a problem for me with a Fortran compiler due to issue 0014647.
(0042095)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.