View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0013434 | CMake | CMake | public | 2012-07-24 05:28 | 2016-06-10 14:31 |
|
Reporter | Julien Bigot | |
Assigned To | Kitware Robot | |
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | moved | |
Platform | Bluegene | OS | | OS Version | |
Product Version | CMake 2.8.8 | |
Target Version | | Fixed in Version | | |
|
Summary | 0013434: FindHDF5 does not look up for libraries in the compiler default directories resulting in missing libraries |
Description | 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. |
Additional Information | The attached patch mimics the FindMPI behaviour that solves the problem |
Tags | No tags attached. |
|
Attached Files | FindHDF5.cmake.patch [^] (605 bytes) 2012-07-24 05:28 [Show Content] [Hide Content]--- /usr/share/cmake-2.8/Modules/FindHDF5.cmake 2012-06-22 15:47:52.000000000 +0200
+++ FindHDF5.cmake 2012-07-24 11:22:34.730024718 +0200
@@ -228,6 +228,9 @@
HDF5_${LANGUAGE}_LIBRARY_DIRS
HDF5_${LANGUAGE}_LIBRARY_NAMES
)
+ if (DEFINED CMAKE_${LANGUAGE}_IMPLICIT_LINK_DIRECTORIES)
+ list(APPEND HDF5_${LANGUAGE}_LIBRARY_DIRS ${CMAKE_${LANGUAGE}_IMPLICIT_LINK_DIRECTORIES})
+ endif ()
# take a guess that the includes may be in the 'include' sibling
# directory of a library directory.
|
|